Skip to content

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

Answered by Byron
batabek asked this question in Q&A
git.execute with "--quiet" flag causes hang #1316
Aug 8, 2021 · 1 answers · 2 replies

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

Replies

1 suggested answer
·
2 replies

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.

2 replies
@batabek

@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 ?

@Byron

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