Skip to content

Commit 08bd076

Browse files
committed
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
2 parents fa9172c + c870de6 commit 08bd076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/get-tar-commit-id.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv UNUSED, const char *prefix
3535
die_errno("git get-tar-commit-id: read error");
3636
if (n != HEADERSIZE)
3737
die_errno("git get-tar-commit-id: EOF before reading tar header");
38-
if (header->typeflag[0] != 'g')
38+
if (header->typeflag[0] != TYPEFLAG_GLOBAL_HEADER)
3939
return 1;
4040

4141
len = strtol(content, &end, 10);

0 commit comments

Comments
 (0)