mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
tar-tree: finish honoring extractor's umask in git-tar-tree.
Earlier commit 38ec15a973a1f075f0d94d130b0ef279562921cd forgot to apply the same principle of not forcing go-w to the base directory when specified. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
8f1d2e6f49
commit
3ac0ebbba4
@ -433,7 +433,7 @@ int main(int argc, char **argv)
|
||||
archive_time = time(NULL);
|
||||
if (basedir)
|
||||
write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
|
||||
basedir, 040755, NULL, 0);
|
||||
basedir, 040777, NULL, 0);
|
||||
traverse_tree(buffer, size, NULL);
|
||||
free(buffer);
|
||||
write_trailer();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user