Skip to content

Can't update project via cli #62

Closed

Description

@iakovgan

running:

gitlab project update --id=ID --default-branch=master

returns error ~ function do_get accepts 4 arguments, 2 given.

Please check this line:
https://github.com/gpocentek/python-gitlab/blob/master/gitlab/cli.py#L185

Function actually accepts 4 arguments. Looks like copypaste issue.
https://github.com/gpocentek/python-gitlab/blob/master/gitlab/cli.py#L165

ps
And thank you for a nice tool! It is most helpfull.

Activity

  1. iakovgan commented on Jul 11, 2015

    @iakovgan
    Author

    Awsome! Thank.

    I just have a doubt about project update. i gues it should require namespace or namespace-id since one project can be found in different spaces as well as in a personal namespace.

    Also what is the behavior when we find multiple objects?

  2. gpocentek commented on Jul 14, 2015

    @gpocentek
    Contributor

    namespace should stay optional, because you don't have to use it. TBH I'm not sure what the behavior would be if multiple objects exist.

  3. locked as resolved and limited conversation to collaborators on Nov 29, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions