From 3a658409935ad9300f88e1fbe72aee836bc20c3e Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 25 Jun 2019 17:24:39 +0200 Subject: [PATCH] CONFIG: set umask 0022 when packing tar files for release --- bin/tools/foamPackRelease | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/tools/foamPackRelease b/bin/tools/foamPackRelease index 59962dd3c2..b17831f27d 100755 --- a/bin/tools/foamPackRelease +++ b/bin/tools/foamPackRelease @@ -211,8 +211,9 @@ echo "tarName=\""$tarName"\"" # Note - directory separator '/' encoded as '@' for manifest name echo "manifest=\""${dirPrefix}"@META-INFO@"manifest.txt"\"" echo -echo "set -x" -echo 'git archive --format=tar --prefix="$dirPrefix/" -o "$outputDir/$tarName.tar" "$head"' +echo 'set -x' +echo 'umask 0022' +echo 'git -c tar.umask=user archive --format=tar --prefix="$dirPrefix/" -o "$outputDir/$tarName.tar" "$head"' echo 'echo "api=$api" > "$outputDir/$manifest"' echo 'echo "patch=$patch" >> "$outputDir/$manifest"' @@ -237,7 +238,7 @@ then echo echo 'pushd "$module"' - echo 'git archive --format=tar --prefix="$dirPrefix/$module/" -o "$outputDir/$tarModule.tar" "$commit"' + echo 'git -c tar.umask=user archive --format=tar --prefix="$dirPrefix/$module/" -o "$outputDir/$tarModule.tar" "$commit"' echo 'git ls-tree -r "$commit" >> "$outputDir/$manifest"' echo 'echo >> "$outputDir/$manifest"'