branch: missing space fix at line 313
The message introduced by commit 593a2a5d06
(branch: protect branches
checked out in all worktrees, 2021-12-01) is missing a space in the
first line, add it.
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
parent
593a2a5d06
commit
68d924e1de
2
branch.c
2
branch.c
|
@ -212,7 +212,7 @@ int validate_new_branchname(const char *name, struct strbuf *ref, int force)
|
||||||
worktrees = get_worktrees();
|
worktrees = get_worktrees();
|
||||||
wt = find_shared_symref(worktrees, "HEAD", ref->buf);
|
wt = find_shared_symref(worktrees, "HEAD", ref->buf);
|
||||||
if (wt && !wt->is_bare)
|
if (wt && !wt->is_bare)
|
||||||
die(_("cannot force update the branch '%s'"
|
die(_("cannot force update the branch '%s' "
|
||||||
"checked out at '%s'"),
|
"checked out at '%s'"),
|
||||||
ref->buf + strlen("refs/heads/"), wt->path);
|
ref->buf + strlen("refs/heads/"), wt->path);
|
||||||
free_worktrees(worktrees);
|
free_worktrees(worktrees);
|
||||||
|
|
Loading…
Reference in New Issue