diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-08 17:03:07 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-08 10:26:23 -0700 |
commit | 18eb3a9ce7c544e74d424b942c5a5c9720c20112 (patch) | |
tree | 60afd33c1692739a11119cc7014723391eab1968 /tar.h | |
parent | branch -m: update all per-worktree HEADs (diff) | |
download | tgif-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 'tar.h')
0 files changed, 0 insertions, 0 deletions