Skip to content

Conversation

@chrisgavin
Copy link
Contributor

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
Contributor 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.

2 participants