mirror of
https://github.com/git/git.git
synced 2026-02-25 17:33:34 +00:00
Merge branch 'maint'
* maint: fetch-pack: check for valid commit from server
This commit is contained in:
@@ -395,6 +395,8 @@ static int find_common(int fd[2], unsigned char *result_sha1,
|
||||
case ACK_continue: {
|
||||
struct commit *commit =
|
||||
lookup_commit(result_sha1);
|
||||
if (!commit)
|
||||
die("invalid commit %s", sha1_to_hex(result_sha1));
|
||||
if (args.stateless_rpc
|
||||
&& ack == ACK_common
|
||||
&& !(commit->object.flags & COMMON)) {
|
||||
|
||||
Reference in New Issue
Block a user