Name |
Last commit
|
Last update |
---|---|---|
.. | ||
create.c | ||
delete.c | ||
ishead.c | ||
iterator.c | ||
lookup.c | ||
move.c | ||
name.c | ||
remote.c | ||
upstream.c | ||
upstreamname.c |
The code correctly detects that forced creation of a branch on a nonbare repo should not be able to overwrite a branch which is the HEAD reference. But there's no reason to prevent this on a bare repo, and in fact, git allows this. I.e., git branch -f master new_sha works on a bare repo with HEAD set to master. This change fixes that problem, and updates tests so that, for this case, both the bare and nonbare cases are checked for correct behavior.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
create.c | Loading commit data... | |
delete.c | Loading commit data... | |
ishead.c | Loading commit data... | |
iterator.c | Loading commit data... | |
lookup.c | Loading commit data... | |
move.c | Loading commit data... | |
name.c | Loading commit data... | |
remote.c | Loading commit data... | |
upstream.c | Loading commit data... | |
upstreamname.c | Loading commit data... |