@matheusbsbs / matheus-bagliano / commits / 8c23b6fae2
Fork 0

describe: do not silently ignore indescribable commits

We silently ignored indescribable commits without complaining. Complain and die instead. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jan 11, 2006 at 13:41 UTC 8c23b6fae2e5cd8475885b015f0bb992d19921db
1 file changed +3 -2
describe.c
+3 -2
@@ -124,10 +124,11 @@ static void describe(struct commit *cmit)
124 if (n) {
125 printf("%s-g%s\n", n->path,
126 find_unique_abbrev(cmit->object.sha1, abbrev));
127 - break;
127 + clear_commit_marks(cmit, SEEN);
128 + return;
129 }
130 }
130 - clear_commit_marks(cmit, SEEN);
131 + die("cannot describe '%s'", sha1_to_hex(cmit->object.sha1));
132 }
133
134 int main(int argc, char **argv)