Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-09 02:44:06 +0400
committerJunio C Hamano <junkio@cox.net>2006-05-09 02:44:06 +0400
commite7cef45fbceab9558adce82a26b96f15af47772c (patch)
tree58a5d2e9e4f2c1b11727000c54918c18779865c9 /sha1_name.c
parent73b0e5af9daf38734d94ed170f8800481e15567f (diff)
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 ec5cd2c9ea..dc6835520c 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;
}