Make fetchhg do the same as nix-prefetch-hg, use hg archive. Fixes #2781.
This commit is contained in:
parent
625b8f310f
commit
ea23ea00e4
|
@ -2,8 +2,9 @@ source $stdenv/setup
|
|||
|
||||
header "getting $url${tag:+ ($tag)} into $out"
|
||||
|
||||
hg clone --insecure ${tag:+-r "$tag"} "$url" "$out"
|
||||
hg clone --insecure ${tag:+-r "$tag"} "$url" hg-clone
|
||||
|
||||
rm -rf "$out/.hg"
|
||||
hg archive -q -y ${tag:+-r "$tag"} --cwd hg-clone $out
|
||||
rm -f $out/.hg_archival.txt
|
||||
|
||||
stopNest
|
||||
|
|
Loading…
Reference in New Issue