Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

git.execute with "--quiet" flag causes hang #1316

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

Hello,

I am trying to execute a commit using

git.execute(["git","commit","--quiet"])

to suppress the message but it seems like it hangs. How can I fix it ?

using GitPython v.3.1.18

You must be logged in to vote

In order to execute git in the correct repository you would probably do it as described here. If that doesn't resolve the problem it's possible to debug the git invocations as well.

Replies: 1 comment 2 replies

Comment options

In order to execute git in the correct repository you would probably do it as described here. If that doesn't resolve the problem it's possible to debug the git invocations as well.

You must be logged in to vote
2 replies
Comment options

@Byron Thanks for the response. I have omitted the init. code so I guarantee that it's repo is initialized properly. This hang might be related to this issue ?

Comment options

Byron Aug 9, 2021
Maintainer

Probably not.

Calling git.execute() really isn't recommended and I wonder if following the docs leads to more idiomatic and easier to debug code.

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

AltStyle によって変換されたページ (->オリジナル) /