Browse Source

get_sha1() - fix infinite loop on nonexistent stage.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 19 years ago
parent
commit
e7cef45fbc
  1. 1
      sha1_name.c

1
sha1_name.c

@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1) @@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1)
memcpy(sha1, ce->sha1, 20);
return 0;
}
pos++;
}
return -1;
}

Loading…
Cancel
Save