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

Avoid fetching all tags on git clone/fetch #1089

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

andrewjcg
Copy link
Contributor

By default, git fetch/clone will download all tags from the remote repo, so pass --no-tags to avoid some unnecessary downloading -- we'll still explicitly fetch any tag we need to checkout.

@wolfv
Copy link
Member

wolfv commented Oct 7, 2024

Thanks! Looks like a few tests don't work with this change yet :/

@andrewjcg
Copy link
Contributor Author

Ah interesting, it passes locally for me. I wonder if this is related to git version -- looking...

@andrewjcg
Copy link
Contributor Author

Ah nevermind, just wasn't using the correct command line to include this test :P

@andrewjcg
Copy link
Contributor Author

THe issue was that the test recipe was specifying a "tag" using rev: (fixed to use tag:).

By default, git fetch/clone will download all tags from the remote
repo, so pass `--no-tags` to avoid some unnecessary downloading.
@wolfv
Copy link
Member

wolfv commented Oct 7, 2024

Ouch! Thanks for fixing all this! :)

@wolfv wolfv enabled auto-merge (squash) October 7, 2024 20:54
@wolfv wolfv merged commit 80cb8d1 into prefix-dev:main Oct 7, 2024
15 checks passed
@andrewjcg andrewjcg deleted the no_tags branch October 7, 2024 21:08
wolfv pushed a commit to wolfv/rattler-build that referenced this pull request Nov 6, 2024
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.

2 participants