Skip to content

git pull make a fetch ? so "--ff-only" seems not possible #1088

Description

@fletort

With this code:
origin.pull('--ff-only')

I have the following error :

      raise GitCommandError(self.args, status, errstr)

E git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
E cmdline: git pull -v origin --ff-only master
E stderr: 'error: unknown option `ff-only master'
E usage: git fetch [] [ [...]]
E or: git fetch []
E or: git fetch --multiple [] [( | )...]
E 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...
how can i make a pull that make a pull ?

Activity

  1. Byron commented on Nov 21, 2020

    @Byron
    Member

    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.

  2. reopened this on Feb 26, 2021
  3. locked and limited conversation to collaborators on Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions