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)
GitCreateBranch
should return the created branch even ifcheckOut
isfalse
.To requirement to pass the
Repository
instance to theGitBranch
constructor is a bit of a hack, but required since there's anRemotes
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)