Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of --tags option to git #95

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Remove use of --tags option to git #95

merged 1 commit into from
Mar 6, 2023

Conversation

javierggt
Copy link
Collaborator

@javierggt javierggt commented Feb 28, 2023

Description

This PR introdues changes to skare3_promote.py to remove uses of the --tags argument to git. This option does not exist anymore.

Fixes #93

Interface impacts

None

Testing

Unit tests

  • No unit tests
  • Mac
  • Linux
  • Windows

Independent check of unit tests by [REVIEWER NAME]

  • [PLATFORM]:

Functional tests

No functional testing.

@javierggt javierggt changed the title skare3_promote.py Remove use of --tags option to git Feb 28, 2023
@javierggt javierggt merged commit ed9e678 into master Mar 6, 2023
@taldcroft
Copy link
Member

I don't recall that there was ever a --tags option for git fetch (maybe wrong though), but there was and still is git fetch --tag. This has always confused me and I often will try the wrong one first.

@javierggt
Copy link
Collaborator Author

javierggt commented Mar 8, 2023

Actually, the --tags options did not go away. You can see it in their online docs (https://git-scm.com/docs/git-fetch), so you must be confused.

Your comment made me look into it a bit more, and this seems a bug in gitpython. This is the python code that is run:

repo = git.Repo()
repo.remotes.origin.fetch("--tags")

In the newer version, it tries to run:

git fetch -v -- origin --tags

and this fails with the error couldn't find remote ref --tags. The same command fails in the current ska3-flight, so the problem is how gitpython assembled the command.

@taldcroft
Copy link
Member

Huh, I would swear I tried git fetch --tags this morning and it didn't work, but I agree now with what you are saying.

@javierggt javierggt mentioned this pull request Aug 9, 2023
@javierggt javierggt deleted the git-tags branch January 5, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git does not have --tags option anymore
2 participants