aboutsummaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-08 17:03:07 +0900
committerJunio C Hamano <gitster@pobox.com>2016-04-08 10:26:23 -0700
commit18eb3a9ce7c544e74d424b942c5a5c9720c20112 (patch)
tree60afd33c1692739a11119cc7014723391eab1968 /sequencer.c
parent70999e9ceca47e03b8900bfb310b2f804125811e (diff)
downloadgit-18eb3a9ce7c544e74d424b942c5a5c9720c20112.tar.gz
git-18eb3a9ce7c544e74d424b942c5a5c9720c20112.tar.xz
set_worktree_head_symref(): fix error message
Emit an informative error when failed to hold lock of HEAD. 2233066e (refs: add a new function set_worktree_head_symref, 2016-03-27) added set_worktree_head_symref(), but this is missing a call to unable_to_lock_message() after hold_lock_file_for_update() fails, so it emits an empty error message: % git branch -m oldname newname error: error: HEAD of working tree /path/to/wt is not updated fatal: Branch renamed to newname, but HEAD is not updated! Thanks to Eric Sunshine for pointing this out. Signed-off-by: Kazuki Yamaguchi <k@rhe.jp> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
0 files changed, 0 insertions, 0 deletions