mirror of
https://github.com/git-for-windows/git.git
synced 2025-12-17 05:51:15 -06:00
get_sha1() - fix infinite loop on nonexistent stage.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
73b0e5af9d
commit
e7cef45fbc
@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1)
|
|||||||
memcpy(sha1, ce->sha1, 20);
|
memcpy(sha1, ce->sha1, 20);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
pos++;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user