]> git.ipfire.org Git - thirdparty/git.git/blobdiff - branch.c
branch: update the message to refuse touching a branch in-use
[thirdparty/git.git] / branch.c
index cdf70b0ef0706eb328902ea21049ab57eaa675a3..3e4684f79f693059a6272465dd983e149aee5eb9 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -471,7 +471,7 @@ int validate_new_branchname(const char *name, struct strbuf *ref, int force)
 
        if ((path = branch_checked_out(ref->buf)))
                die(_("cannot force update the branch '%s' "
-                     "checked out at '%s'"),
+                     "used by worktree at '%s'"),
                    ref->buf + strlen("refs/heads/"), path);
 
        return 1;