Skip to main content

All Questions

Tagged with
0 votes
1 answer
87 views

Azure devops throwing stderr: 'fatal: You are not currently on a branch.' when trying to push the code to checked out branch using GitPython library

I am trying to check out a git branch,generate files using python code and then push the changes to the branch using GitPython library Below is the code used repo = git.Repo(...
Sachin Shetty's user avatar
1 vote
0 answers
606 views

How to clone Azure DevOps git repository with OAuth token from service principal?

I am trying to clone an Azure DevOps git repository using an Azure app registration/service principal. I was successful in bash with the help of this answer. Sadly, adapting it to GitPython results in ...
Felix Thein's user avatar
1 vote
2 answers
1k views

Using GitPython in Azure DevOps pipelines causes 'git: 'credential-manager-core' is not a git command

When we use GitPython in Azure DevOps and try to push to a repository, the following message occurs (same repository as cloned by the pipeline): stderr: 'git: 'credential-manager-core' is not a git ...
BendEg's user avatar
  • 21.2k