get_sha1() - fix infinite loop on nonexistent stage.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
May 8, 2006 at 15:44 UTC
e7cef45fbceab9558adce82a26b96f15af47772c
1 file changed
+1
sha1_name.c
+1
@@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1)
498
memcpy(sha1, ce->sha1, 20);
499
return 0;
500
}
501
+ pos++;
502
}
503
return -1;
504
}