commit | e7cef45fbceab9558adce82a26b96f15af47772c | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Mon May 08 15:44:06 2006 -0700 |
committer | Junio C Hamano <junkio@cox.net> | Mon May 08 15:44:06 2006 -0700 |
tree | 58a5d2e9e4f2c1b11727000c54918c18779865c9 | |
parent | 73b0e5af9daf38734d94ed170f8800481e15567f [diff] [blame] |
get_sha1() - fix infinite loop on nonexistent stage. Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/sha1_name.c b/sha1_name.c index ec5cd2c..dc68355 100644 --- a/sha1_name.c +++ b/sha1_name.c
@@ -498,6 +498,7 @@ memcpy(sha1, ce->sha1, 20); return 0; } + pos++; } return -1; }