git-fetch.txt: document fetch output
[gitweb.git] / builtin / checkout.c
index ea2fe1cf3fc251dcab2f2d70e737a0f8f5000a21..3398c61e9a64ab686bf59fb027277f3de578b5fb 100644 (file)
@@ -1110,7 +1110,7 @@ static int checkout_branch(struct checkout_opts *opts,
                char *head_ref = resolve_refdup("HEAD", 0, sha1, &flag);
                if (head_ref &&
                    (!(flag & REF_ISSYMREF) || strcmp(head_ref, new->path)))
-                       die_if_checked_out(new->path);
+                       die_if_checked_out(new->path, 1);
                free(head_ref);
        }