Skip to main content

All Questions

Tagged with
0 votes
0 answers
439 views

Error for git branch command using GitPython?

So I am using GitPython in a script to get the start branch of a commit. It works for some, but for others I eventually get errors like these: [10] => Failed to process commit: Cmd('git') failed ...
Alexander's user avatar
1 vote
1 answer
289 views

Git python API returns invalid branch name when using tag

I am trying to checkout a branch with a tag that references a commit. I keep getting an error that the branch name is invalid because it is trying to take the tag name as part of my branch. I am using ...
TreeWater's user avatar
  • 867
4 votes
2 answers
2k views

gitpython - checking if branch is not merged with repo object?

I need to check if branch I'm interested is merged to another branch. With gitpython, I can use its git command object like: import git g = git.Git('/path/to/git/repo') g.branch("--no-merged", "...
Andrius's user avatar
  • 21.2k