aboutsummaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-08 15:44:06 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-08 15:44:06 -0700
commite7cef45fbceab9558adce82a26b96f15af47772c (patch)
tree58a5d2e9e4f2c1b11727000c54918c18779865c9 /sha1_name.c
parent73b0e5af9daf38734d94ed170f8800481e15567f (diff)
downloadgit-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.c1
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;
}