mirror of
https://github.com/git/git
synced 2024-09-12 21:04:12 +00:00
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>
This commit is contained in:
parent
5a25b4a66e
commit
8c23b6fae2
|
@ -124,10 +124,11 @@ static void describe(struct commit *cmit)
|
||||||
if (n) {
|
if (n) {
|
||||||
printf("%s-g%s\n", n->path,
|
printf("%s-g%s\n", n->path,
|
||||||
find_unique_abbrev(cmit->object.sha1, abbrev));
|
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)
|
int main(int argc, char **argv)
|
||||||
|
|
Loading…
Reference in a new issue