summaryrefslogtreecommitdiffstats
path: root/t/t1400-update-ref.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-13 19:52:25 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-15 19:47:24 +0200
commit014e7db3f5563a61cefbe1f6f5747931c799a37e (patch)
tree766db9bafcc846b61b62ea49ba80b20099698a04 /t/t1400-update-ref.sh
parentrefs.c: change resolve_ref_unsafe reading argument to be a flags field (diff)
downloadgit-014e7db3f5563a61cefbe1f6f5747931c799a37e.tar.xz
git-014e7db3f5563a61cefbe1f6f5747931c799a37e.zip
reflog test: test interaction with detached HEAD
A proposed patch produced broken HEAD reflog entries when checking out anything other than a branch. The testsuite still passed, so it took a few days for the bug to be noticed. Add tests checking the content of the reflog after detaching and reattaching HEAD so we don't have to rely on manual testing to catch such problems in the future. [jn: using 'log -g --format=%H' instead of parsing --oneline output, resetting state in each test so they can be safely reordered or skipped] Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Reviewed-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1400-update-ref.sh')
0 files changed, 0 insertions, 0 deletions