Created
August 9, 2016 20:14
-
-
Save harlowja/d8797ed6c8db9e119020c64a160118f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/tools/make-tarball | |
+++ b/tools/make-tarball | |
@@ -55,5 +55,15 @@ if [ "$rev" = HEAD ] && ! git diff-index --quiet HEAD --; then | |
fi | |
fi | |
-git archive --format=tar.gz --prefix="$archive_base/" "$rev" > "$output" | |
+TEMP_D=$(mktemp -d) | |
+working_dir=$PWD | |
+git archive --format=tar --prefix="$archive_base/" "$rev" > "$TEMP_D/$archive_base.tar" | |
+cd $TEMP_D/ | |
+gzip "$archive_base.tar" | |
+mv "$archive_base.tar.gz" $working_dir/$output | |
+ | |
echo "$output" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment