sha1_file.c::add_packed_git(): fix type mismatch.
An object name is 20-byte 'unsigned char', not 'char'. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local)
|
|||||||
struct packed_git *p;
|
struct packed_git *p;
|
||||||
unsigned long idx_size;
|
unsigned long idx_size;
|
||||||
void *idx_map;
|
void *idx_map;
|
||||||
char sha1[20];
|
unsigned char sha1[20];
|
||||||
|
|
||||||
if (check_packed_git_idx(path, &idx_size, &idx_map))
|
if (check_packed_git_idx(path, &idx_size, &idx_map))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user