From 7f7d4ab68649b2f5530143e8cfa95fc785ae9937 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Jul 2014 16:32:55 +0200 Subject: [PATCH] nix-copy-closure: Implement --gzip via ssh's -C flag --- scripts/nix-copy-closure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in index 3dde6e157..6964f2d47 100755 --- a/scripts/nix-copy-closure.in +++ b/scripts/nix-copy-closure.in @@ -41,8 +41,7 @@ while (@ARGV) { $sign = 1; } elsif ($arg eq "--gzip") { - $compressor = "gzip"; - $decompressor = "gzip -d"; + push @globalSshOpts, "-C"; } elsif ($arg eq "--bzip2") { $compressor = "bzip2";