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

Simulate standard input #1181

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

Some git commands for example git lfs smudge can only read from STDIN. Is there a way to pass information to STDIN using the command wrapper of GitPython?

You must be logged in to vote

You should be able to use the istream argument of the repo.git.execute(...) method.

Even though I am closing this issue as question, please feel free to comment if this didn't work or if there are follow up questions.

Replies: 1 comment 1 reply

Comment options

You should be able to use the istream argument of the repo.git.execute(...) method.

Even though I am closing this issue as question, please feel free to comment if this didn't work or if there are follow up questions.

You must be logged in to vote
1 reply
Comment options

I forgot to respond to the issue! Your suggestion worked. Thank you very much :)

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 #1127 on February 26, 2021 11:18.

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