Skip to content

Implement reference pruning on push. #40

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

Implement reference pruning on push. #40

merged 1 commit into from
Aug 28, 2020

Conversation

chrisgavin
Copy link
Collaborator

This handles some cases where branches need to be pruned when pushing. go-git does have a built-in option for this, but it seems to prune a lot more than it actually should, so instead I've implemented the pruning manually.

Closes #4.

RefSpecs: refSpecs,
Auth: credentials,
Progress: os.Stderr,
Force: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to remove Force: true here due to go-git/go-git#158, but it shouldn't matter anyway because the refspecs we are using are already forces.

@chrisgavin chrisgavin merged commit 5bd18e0 into main Aug 28, 2020
@chrisgavin chrisgavin deleted the pruning branch August 28, 2020 09: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.

Handle cases where pruning is required.
1 participant