summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a25b4a)
raw | patch | inline | side by side (parent: 5a25b4a)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 11 Jan 2006 21:41:25 +0000 (13:41 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 11 Jan 2006 21:41:25 +0000 (13:41 -0800) |
We silently ignored indescribable commits without complaining.
Complain and die instead.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Complain and die instead.
Signed-off-by: Junio C Hamano <junkio@cox.net>
describe.c | patch | blob | history |
diff --git a/describe.c b/describe.c
index a0180f548ec950fe10ae4f759c13842cbcf03285..5548a16e4d97690e207a6e7cd0699aa8de73f81f 100644 (file)
--- a/describe.c
+++ b/describe.c
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)