1 file changed
@@ -86,18 +86,19 @@ def set_object( | |||
| 86 | 86 | super(Reference, self).set_object(object, logmsg) | |
| 87 | 87 | ||
| 88 | 88 | if oldbinsha is not None: | |
| 89 | - # /* from refs.c in git-source | ||
| 90 | - # * Special hack: If a branch is updated directly and HEAD | ||
| 91 | - # * points to it (may happen on the remote side of a push | ||
| 92 | - # * for example) then logically the HEAD reflog should be | ||
| 93 | - # * updated too. | ||
| 94 | - # * A generic solution implies reverse symref information, | ||
| 95 | - # * but finding all symrefs pointing to the given branch | ||
| 96 | - # * would be rather costly for this rare event (the direct | ||
| 97 | - # * update of a branch) to be worth it. So let's cheat and | ||
| 98 | - # * check with HEAD only which should cover 99% of all usage | ||
| 99 | - # * scenarios (even 100% of the default ones). | ||
| 100 | - # */ | ||
| 89 | + # From refs/files-backend.c in git-source: | ||
| 90 | + # /* | ||
| 91 | + # * Special hack: If a branch is updated directly and HEAD | ||
| 92 | + # * points to it (may happen on the remote side of a push | ||
| 93 | + # * for example) then logically the HEAD reflog should be | ||
| 94 | + # * updated too. | ||
| 95 | + # * A generic solution implies reverse symref information, | ||
| 96 | + # * but finding all symrefs pointing to the given branch | ||
| 97 | + # * would be rather costly for this rare event (the direct | ||
| 98 | + # * update of a branch) to be worth it. So let's cheat and | ||
| 99 | + # * check with HEAD only which should cover 99% of all usage | ||
| 100 | + # * scenarios (even 100% of the default ones). | ||
| 101 | + # */ | ||
| 101 | 102 | self.repo.head.log_append(oldbinsha, logmsg) | |
| 102 | 103 | # END check if the head | |
| 103 | 104 | ||
0 commit comments