diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-08 15:44:06 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-08 15:44:06 -0700 |
commit | e7cef45fbceab9558adce82a26b96f15af47772c (patch) | |
tree | 58a5d2e9e4f2c1b11727000c54918c18779865c9 /sha1_name.c | |
parent | 73b0e5af9daf38734d94ed170f8800481e15567f (diff) | |
download | git-e7cef45fbceab9558adce82a26b96f15af47772c.tar.gz git-e7cef45fbceab9558adce82a26b96f15af47772c.tar.xz |
get_sha1() - fix infinite loop on nonexistent stage.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_name.c b/sha1_name.c index ec5cd2c9e..dc6835520 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1) memcpy(sha1, ce->sha1, 20); return 0; } + pos++; } return -1; } |