Skip to content

Commit

Permalink
describe: do not silently ignore indescribable commits
Browse files Browse the repository at this point in the history
We silently ignored indescribable commits without complaining.
Complain and die instead.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 11, 2006
1 parent 5a25b4a commit 8c23b6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions describe.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ static void describe(struct commit *cmit)
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)
Expand Down

0 comments on commit 8c23b6f

Please sign in to comment.