summaryrefslogtreecommitdiff
path: root/builtin/add.c
diff options
context:
space:
mode:
authorLibravatar Kazuki Yamaguchi <k@rhe.jp>2016-04-08 17:03:07 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-08 10:26:23 -0700
commit18eb3a9ce7c544e74d424b942c5a5c9720c20112 (patch)
tree60afd33c1692739a11119cc7014723391eab1968 /builtin/add.c
parentbranch -m: update all per-worktree HEADs (diff)
downloadtgif-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 'builtin/add.c')
0 files changed, 0 insertions, 0 deletions