Browse code

Don't compress the archive made from git's output.

Commit 894d4a23fba made BuildFile use TarSum, which doesn't support
compressed tar archives.
This breaks builds from git url, which compressed it with bzip2.
Instead, just pass it uncompressed.

Docker-DCO-1.0-Signed-off-by: Paul Lietar <paul@lietar.net> (github: plietar)

Paul Lietar authored on 2014/01/10 03:17:50
Showing 2 changed files
... ...
@@ -148,6 +148,7 @@ odk- <github@odkurzacz.org>
148 148
 Pascal Borreli <pascal@borreli.com>
149 149
 Paul Bowsher <pbowsher@globalpersonals.co.uk>
150 150
 Paul Hammond <paul@paulhammond.org>
151
+Paul LiƩtar <paul@lietar.net>
151 152
 Paul Nasrat <pnasrat@gmail.com>
152 153
 Phil Spitler <pspitler@gmail.com>
153 154
 Piotr Bogdan <ppbogdan@gmail.com>
... ...
@@ -929,7 +929,7 @@ func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
929 929
 			return fmt.Errorf("Error trying to use git: %s (%s)", err, output)
930 930
 		}
931 931
 
932
-		c, err := archive.Tar(root, archive.Bzip2)
932
+		c, err := archive.Tar(root, archive.Uncompressed)
933 933
 		if err != nil {
934 934
 			return err
935 935
 		}