Skip to content

Comments

Document how to not fetch tags from old repo when syncing#168

Open
cap10morgan wants to merge 1 commit intomainfrom
docs/configure-no-tags-in-old-repo-sync
Open

Document how to not fetch tags from old repo when syncing#168
cap10morgan wants to merge 1 commit intomainfrom
docs/configure-no-tags-in-old-repo-sync

Conversation

@cap10morgan
Copy link
Member

Otherwise we end up with all of the old release_N tags in here when we do a sync.

@cap10morgan cap10morgan requested a review from a team as a code owner February 23, 2026 19:33
@cap10morgan cap10morgan force-pushed the docs/configure-no-tags-in-old-repo-sync branch from 6559740 to 9ad0e08 Compare February 23, 2026 19:34
> # Only fetch `main` branch
> git config remote.old.fetch '+refs/heads/main:refs/remotes/old/main'
> # Don't fetch tags
> git config remote.old.tagOpt '--no-tags'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the single quotes? Is the shell interpreting --no-tags as an option or something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I was worried about, yeah. I didn't actually test it without but figured this was the safest approach.

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