Skip to content
\n

the error show like this

\n
  File \"/home/ubuntu/.local/lib/python3.8/site-packages/git/objects/commit.py\", line 277, in _iter_from_process_or_stream\n    finalize_process(proc_or_stream)\n  File \"/home/ubuntu/.local/lib/python3.8/site-packages/git/util.py\", line 329, in finalize_process\n    proc.wait(**kwargs)\n  File \"/home/ubuntu/.local/lib/python3.8/site-packages/git/cmd.py\", line 408, in wait\n    raise GitCommandError(self.args, status, errstr)\ngit.exc.GitCommandError: Cmd('git') failed due to: exit code(128)\n  cmdline: git rev-list refs/tags/TAG01..HEAD --no-merges --\n  stderr: 'fatal: bad revision 'refs/tags/TAG01..HEAD --no-merges'\n
\n

the cmd git rev-list refs/tags/TAG01..HEAD --no-merges -- seems work fine in cmdline run

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

I think what you are trying to do might work with the help of the docs on 'how to use git directly' along with the API docs on iter_commits().

\n

With that, you should be able to figure out which options to pass to git rev-list as kwargs of iter_commits(…) to get the desired result.

\n

Even though I close this issue, feel free to post follow ups in the comments.

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

passing git args to filter output failed? #1175

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

You must be logged in to vote

I think what you are trying to do might work with the help of the docs on 'how to use git directly' along with the API docs on iter_commits().

With that, you should be able to figure out which options to pass to git rev-list as kwargs of iter_commits(…) to get the desired result.

Even though I close this issue, feel free to post follow ups in the comments.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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 #1097 on February 26, 2021 11:18.