From e7cef45fbceab9558adce82a26b96f15af47772c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 8 May 2006 15:44:06 -0700 Subject: [PATCH] get_sha1() - fix infinite loop on nonexistent stage. Signed-off-by: Junio C Hamano --- sha1_name.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2