We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Using gitlab project-file raw with option --ref will trigger the following error: gitlab: error: unrecognized arguments: --ref main
gitlab project-file raw
--ref
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
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
ref
fix(files): make ref parameter optional in get raw file api The ref parameter was made optional in gitlab v13.11.0. (00640ac)