Skip to content
\n

The gitpython code called is a simple repo.index.diff(None)

\n
def list_updated_files(repo_home):\n    try:\n        repo = git.Repo(repo_home)\n    except git.InvalidGitRepositoryError:\n        try:\n            repo = git.Repo(REPO_HOME_DEFAULT)\n        except git.InvalidGitRepositoryError:\n            logging.warning(\"Unable to find git repository to list updated files\")\n            return []\n    changed_files = [item.a_path for item in repo.index.diff(None)]\n    return changed_files
\n

I've investigated for some time and the delta between working / not working really seems to be from using git 2.30.3 instead of 2.30.2

\n

You can see the error in this CI job for example: https://github.com/megalinter/megalinter/runs/6028533814?check_suite_focus=true

\n

Would you have some tip to bypass such error ?

\n

Many thanks !

\n

Edit: this is probably related to actions/checkout#766

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I turned the issue into a conversation as it's a change (or possibly regression) in git that causes the error, GitPython didn't seem to have changed.

\n

That said, exit code 129 is used specifically in a few places within git but not when diffing. Maybe this code is also used if the process is terminated, which would make me wonder what's terminating it.

\n

There seems to be no error output our standard output, making this hard to debug, but maybe the doc section about debugging can help to obtain more information.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1432#discussioncomment-2570600"}}}

Crash with git 2.30.3 - GitCommandError(remove_password_if_present...) #1432

Answered by Byron
nvuillam asked this question in Q&A
Discussion options

You must be logged in to vote

I turned the issue into a conversation as it's a change (or possibly regression) in git that causes the error, GitPython didn't seem to have changed.

That said, exit code 129 is used specifically in a few places within git but not when diffing. Maybe this code is also used if the process is terminated, which would make me wonder what's terminating it.

There seems to be no error output our standard output, making this hard to debug, but maybe the doc section about debugging can help to obtain more information.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nvuillam
Comment options

@Byron
Comment options

@nvuillam
Comment options

@Byron
Comment options

@nvuillam
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1431 on April 15, 2022 02:02.