E git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
\nE cmdline: git pull -v origin --ff-only master
\nE stderr: 'error: unknown option `ff-only master'
\nE usage: git fetch [] [ [...]]
\nE or: git fetch []
\nE or: git fetch --multiple [] [( | )...]
\nE or: git fetch --all []
In fact we see that the commande used is the fetch one.... not the pull one... so the --ff-only option is not available...
\nhow can i make a pull that make a pull ?
After taking a look at the API reference I believe origin.pull(ff_only=true)
should do the trick.
Please feel free to keep posting here in case that didn't work.
","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1172#discussioncomment-408842"}}}-
With this code: I have the following error :
E git.exc.GitCommandError: Cmd('git') failed due to: exit code(1) In fact we see that the commande used is the fetch one.... not the pull one... so the --ff-only option is not available... |
Beta Was this translation helpful? Give feedback.
-
After taking a look at the API reference I believe Please feel free to keep posting here in case that didn't work. |
Beta Was this translation helpful? Give feedback.
After taking a look at the API reference I believe
origin.pull(ff_only=true)
should do the trick.Please feel free to keep posting here in case that didn't work.