Skip to content

gitlab project-file raw: error: unrecognized arguments: --ref XXX #3032

@Overmorrow1501

Description

@Overmorrow1501

Description of the problem, including code/CLI snippet

Using gitlab project-file raw with option --ref will trigger the following error: gitlab: error: unrecognized arguments: --ref main

Command used:

$ gitlab --oauth-token=$CI_WRITE_TOKEN --server-url=$CI_SERVER_PROTOCOL://$CI_SERVER_HOST project-file raw \
 --project-id XXXX --file-path path/to/file.py --ref main >> file.py

Actual Behavior

As stated in change-log https://python-gitlab.readthedocs.io/en/v4.13.0/changelog.html#v4-8-0-2024-07-16, ref param should be optional not an unrecognized arguments

fix(files): make ref parameter optional in get raw file api
The ref parameter was made optional in gitlab v13.11.0. (00640ac)

Specifications

  • python-gitlab >= 4.8.0
  • gitlab == 17.2.5

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy