Skip to main content
1 vote
0 answers
130 views

I have a GitHub App configured with a Webhook that listens to Github events. The App is installed on a private repo and has both read and write permissions. git clone https://x-access-token:<TOKEN&...
newkid's user avatar
  • 1,488
0 votes
0 answers
134 views

I am trying to run a script with GitPython, but it seems to only fail when I run from inside the Jenkins automation environment. The error that it gives isn't very helpful (and I haven't been able to ...
snowwolf75's user avatar
1 vote
1 answer
252 views

How do I run this git command with gitpython(v2.1.*), please ? git config --global --add safe.directory "some_dir" Couldn't find in doc. I tried this: repo = git.Repo.init(some_dir) config =...
Ticoincoin's user avatar
0 votes
1 answer
106 views

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
0 votes
2 answers
104 views

I know you can get the head of a branch directly using it's name (e.g. repo.heads.main). Can you get the head of a branch that has illegal variable characters (e.g. feature-generate-events) directly ...
Stephen Rasku's user avatar
0 votes
0 answers
126 views

I'm encountering issues when trying to push changes to a Git remote repository using GitPython. I'm receiving two different errors intermittently, and I'm unsure how to resolve them. Error 1 error: ...
Ame Suzuki's user avatar
0 votes
0 answers
114 views

I have the following piece of code to get the list of commit summaries of a specific file: from git import Repo repo_working_dir = '<valid directory of the repo>' repo = Repo(repo_working_dir) ...
Rajesh's user avatar
  • 1
0 votes
1 answer
767 views

I must be dense, but I haven't been able to find a solution yet. I am trying to get a list of all of the members (in all commits or not committed yet) that have changed on a branch in my Python ...
Mark Hammack's user avatar
0 votes
0 answers
157 views

I have this Python Script that clones a list of length n of repositories using ssh. import pandas as pd import time import git import sys import os counter = 0 #excel reader resources = pd....
camilomartinezrincon's user avatar
0 votes
0 answers
64 views

Using the gitpython library, I'm trying access the date of the last changes on a given file. So far I only found out how to: import git # get a handle on a repo object for the current directory repo=...
Antoine Gallix's user avatar
0 votes
1 answer
296 views

This program fails import git repo = git.repo.Repo('..') res = repo.git.rev_list('--since="2024-01-01" master').split('\n') with the following error git.exc.GitCommandError: Cmd('git') ...
Dmitry's user avatar
  • 1,649
1 vote
0 answers
106 views

I'm running a command with GitPython git.execute(). Currently, I'm writing the return value to a window. Because the command takes some time, the window will not show any progress for a few seconds ...
Christian's user avatar
  • 199
0 votes
1 answer
140 views

I have a PySimpleGUI with a button and a multiline. When I click on the button, a method is called and running for a couple of seconds (calls i.a. GitPython methods). The method shall write its output ...
Christian's user avatar
  • 199
0 votes
1 answer
1k views

I want to fetch all files and directories present in a git repo using Python and then parse through each directory to get details of files present under them. Below is the piece of code I have been ...
Shivani's user avatar
0 votes
1 answer
61 views

I am trying to write a basic script that is pulling replicating the contents of one directory into another one, but making some modifications along the way. The items written in the new directory are ...
Panduar's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
34