Skip to content
\n

git shortlog is working in the CLI:

\n
PS scm> git shortlog\nChristian Knittl-Frank (32):\n      Initial commit\n      ...
\n

Any idea where this problem could originate from? Any more info I can provide to track down the issue?

\n

Cheers!

","upvoteCount":0,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

That looks a little strange indeed.

\n

The docs about debugging git-python command invocations might be helpful to get some more information on what's happening. git.shortlog() does indeed only run git shortlog, but with redirections. Maybe those affect it in some way.

\n

You could also try it with a plain Popen(…) call and see if the issue is similar.

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

Git().shortlog() not working #1434

Answered by Byron
lcnittl asked this question in Q&A
Apr 18, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

That looks a little strange indeed.

The docs about debugging git-python command invocations might be helpful to get some more information on what's happening. git.shortlog() does indeed only run git shortlog, but with redirections. Maybe those affect it in some way.

You could also try it with a plain Popen(…) call and see if the issue is similar.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lcnittl
Comment options

Answer selected by Byron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1433 on April 18, 2022 23:18.