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

Allow user to specify a different refspec for remote tracking branches #354

Open
draftcode opened this issue Jun 27, 2024 · 0 comments
Open

Comments

@draftcode
Copy link
Contributor

In some cases, users do not want to keep the remote tracking branches small, e.g. sync only the trunk branch. This allows the user to avoid accidentally checking out a branch from a remote tracking branch.

av-cli has been depending on the remote tracking branch. Initially, it's been assuming that it's +refs/heads/*:refs/remotes/origin/*, but now we take the remote name as well as using the refspec properly to do a map/reverse-map the remote tracking branches.

Going further, we can make av-cli to take a different refspec for its own usage in the config. This would make most of the tools ignore those refs.

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

No branches or pull requests

1 participant