exclude_existing(): set existing_refs.strdup_strings
[gitweb.git] / builtin / checkout.c
index 4ed1ee7e25930aece59b7986fda9523a58c74dd6..81b4419da51f3211129833a472048d897385bca4 100644 (file)
@@ -732,7 +732,7 @@ static void suggest_reattach(struct commit *commit, struct rev_info *revs)
                        "If you want to keep them by creating a new branch, "
                        "this may be a good time\nto do so with:\n\n"
                        " git branch new_branch_name %s\n\n"),
-                       sha1_to_hex(commit->object.sha1));
+                       find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
 }
 
 /*