clone: --naked option.
[gitweb.git] / describe.c
index 1e764026b1554e03eacb0915efbf9b475a6e9c84..fabadb827fb5d7852028e5d8e437e315215f90b1 100644 (file)
@@ -132,10 +132,11 @@ static void describe(char *arg)
                if (n) {
                        printf("%s-g%s\n", n->path,
                               find_unique_abbrev(cmit->object.sha1, abbrev));
-                       break;
+                       clear_commit_marks(cmit, SEEN);
+                       return;
                }
        }
-       clear_commit_marks(cmit, SEEN);
+       die("cannot describe '%s'", sha1_to_hex(cmit->object.sha1));
 }
 
 int main(int argc, char **argv)