All Questions
5 questions
0
votes
1
answer
160
views
Retrieving SHA from gitpython when User is not Owner of Cloned Repo on Windows 11?
I am using the gitpython library to obtain the SHA of Python code during execution on a Windows 11 Enterprise PC. It works fine when I do it as I cloned the repo. When another user tries to run the ...
0
votes
2
answers
146
views
Is it possible to end in git detached head from pull, push, fetch or rebase?
I have a python server application that handles a git repository. It creates commits and switches branches to apply changes locally and then pushes them to the remote repo.
For some reason, users that ...
8
votes
4
answers
10k
views
How to remove git repository, in python, on windows
As the title describes, I need to remove a git repository by using python.
I've seen other questions about this very same topic, but none of the solutions seem to work for me.
My work:
I need to ...
3
votes
3
answers
5k
views
Can't create / add a new branch to a git repo with gitpython
I've been working on some Python scripts which make use of the gitpython library to automate the creation of local branches based on issues in our redmine instance. To get started I'm trying to create ...
3
votes
4
answers
6k
views
gitpython error when checking if repo is dirty
I receive an error while trying to use gitpython to check if a repository is dirty, i.e. has uncommitted changed to tracked files:
import git
repo = git.Repo('')
print repo.is_dirty()
The error:
...