зеркало из https://github.com/microsoft/git.git
Merge branch 'rs/get-tar-commit-id-use-defined-const'
Code clean-up to replace a hardcoded constant with a CPP macro. * rs/get-tar-commit-id-use-defined-const: get-tar-commit-id: use TYPEFLAG_GLOBAL_HEADER instead of magic value
This commit is contained in:
Коммит
08bd076ce4
|
@ -35,7 +35,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv UNUSED, const char *prefix
|
|||
die_errno("git get-tar-commit-id: read error");
|
||||
if (n != HEADERSIZE)
|
||||
die_errno("git get-tar-commit-id: EOF before reading tar header");
|
||||
if (header->typeflag[0] != 'g')
|
||||
if (header->typeflag[0] != TYPEFLAG_GLOBAL_HEADER)
|
||||
return 1;
|
||||
|
||||
len = strtol(content, &end, 10);
|
||||
|
|
Загрузка…
Ссылка в новой задаче