You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially the -D flag of git branch doesn't behave as the common posix flag parsing would suggest. As the git command wrapper as to make certain assumptions, the issue you see is expected.
However, in these cases one can pass the arguments explicitly, such as in this example:
repo.git.branch('-D', 'somebranch')
Please also note that the usage of repo.git is only advised as it's considered un-pythonic and bare-bone. A nicer way of achieving the branch creation and deletion presented here is the following:
Something must be broken in some
Repo.git.*
command argument parsing. In some git repo, dofrom the GitCommandError you can see that for some reason, there's a space missing in the created git command.
The text was updated successfully, but these errors were encountered: