libgit2/tests/refs/branches
John Fultz f9793884a3 branch: fix forced branch creation on HEAD of a bare repo
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.
2016-11-04 18:12:35 +01:00
..
create.c branch: fix forced branch creation on HEAD of a bare repo 2016-11-04 18:12:35 +01:00
delete.c refdb: delete a ref's reflog upon deletion 2015-07-12 19:08:06 +02:00
ishead.c Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
iterator.c Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
lookup.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
move.c refdb: use the same id for old and new when renaming a reference 2015-03-08 16:50:27 +01:00
name.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
remote.c remote: remove live changing of refspecs 2015-05-13 09:46:36 +02:00
upstream.c branch: error out if we cannot find the remote 2015-05-22 12:31:39 +02:00
upstreamname.c branch: move to git_buf when outputting newly-allocated strings 2014-01-27 04:44:05 +01:00