archive.c: avoid access to the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a4009b0b45
commit
b612ee202a
@ -43,7 +43,8 @@ int cmd_upload_archive_writer(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
/* parse all options sent by the client */
|
||||
return write_archive(sent_argv.argc, sent_argv.argv, prefix, NULL, 1);
|
||||
return write_archive(sent_argv.argc, sent_argv.argv, prefix,
|
||||
the_repository, NULL, 1);
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 1, 2)))
|
||||
|
Reference in New Issue
Block a user