-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: handle symbolic ref updates far more gracefully and with more l…
…ogical consistency. Previously, refspecs couldn't be used to update sybolic references locally, particularly because the logic to do so correctly isn't trivial and `git` itself also seems to cover only the most common cases. However, the logic now changed so that remote updates will only be rejected if * fast-forward rules are violated * the local ref is currently checked out * existing refs would not become 'unborn', i.e. point to a reference that doesn't exist and won't be created due to ref-specs This makes it possible to update unborn remote refs to local refs if these are new or unborn themselves. This also allows to create mirrors more easily and allows us to handle `HEAD` without special casing it. Bare repositories have an easier time to update local symbolic refs.
- Loading branch information
Showing
8 changed files
with
790 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters