We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca085e commit 562cefbCopy full SHA for 562cefb
receive-pack.c
@@ -118,7 +118,8 @@ static int update(struct command *cmd)
118
return error("unpack should have generated %s, "
119
"but I can't find it!", new_hex);
120
}
121
- if (deny_non_fast_forwards && !is_null_sha1(old_sha1)) {
+ if (deny_non_fast_forwards && !is_null_sha1(old_sha1) &&
122
+ !strncmp(name, "refs/heads/", 11)) {
123
struct commit *old_commit, *new_commit;
124
struct commit_list *bases, *ent;
125
0 commit comments