It shows this error -
\nCmd('gh') failed due to: exit code(1)\n cmdline: gh auth login --with-token <ghKeysconfig\n stderr: 'accepts 0 arg(s), received 1' \n
It's not easly possible to pass standard input, i.e. the <ghKeysconfig
part via the git
command in GitPython
.
Instead I recommend using a standard Popen
call to wire up standard input to pass the contents of the token file to the gh
process.
-
The command Here, But when I use my python script with GitPython as follows
It shows this error -
|
Beta Was this translation helpful? Give feedback.
-
It's not easly possible to pass standard input, i.e. the Instead I recommend using a standard |
Beta Was this translation helpful? Give feedback.
It's not easly possible to pass standard input, i.e. the
<ghKeysconfig
part via thegit
command inGitPython
.Instead I recommend using a standard
Popen
call to wire up standard input to pass the contents of the token file to thegh
process.