cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp
https://cakebuild.net/extensions/cake-git
Other
39 stars 64 forks source link

(GH-110) GitCreateBranch should return correct branch if not checked out #111

Closed pascalberger closed 4 years ago

pascalberger commented 5 years ago

GitCreateBranch should return the created branch even if checkOut is false.

To requirement to pass the Repository instance to the GitBranch constructor is a bit of a hack, but required since there's an Remotes property. Not sure what's the reason for this property as remotes are related to the repo and not a specific branch, and adding/removing from this list won't actually modify the remotes on the repo (but that would probably be another issue)