Skip to content

Tidy up handling of Git references. #39

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

Merged
merged 1 commit into from
Aug 28, 2020
Merged

Tidy up handling of Git references. #39

merged 1 commit into from
Aug 28, 2020

Conversation

chrisgavin
Copy link
Collaborator

We currently do a lot of fiddly wrangling of Git remotes and references.

We do things like adding remotes to the config of local Git repositories which we then have to clean up later. This is not really needed as we can just interact with the remotes directly.

We can also remove all the places where we convert from refs/* to refs/remotes/remote/* and vice-versa since this just introduces confusion. Since we're only ever pulling from one place we don't really need any namespacing of references - instead we can just behave like Git's --mirror flag.

@chrisgavin chrisgavin merged commit 7926f91 into main Aug 28, 2020
@chrisgavin chrisgavin deleted the tidy-git branch August 28, 2020 08:39
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.

1 participant