forked from lix-project/hydra
git-export -> source
This commit is contained in:
parent
7ccec0900b
commit
0d79f16fd5
|
@ -26,8 +26,7 @@ repoName=$(echo $url | sed '
|
||||||
s,.*/\([^/]\+\)/tags/\([^/]\+\)/*$,\1-\2,;t
|
s,.*/\([^/]\+\)/tags/\([^/]\+\)/*$,\1-\2,;t
|
||||||
s,.*/\([^/]\+\)/*$,\1,;t
|
s,.*/\([^/]\+\)/*$,\1,;t
|
||||||
')
|
')
|
||||||
dstFile=$repoName-r$rev
|
dstFile=source
|
||||||
test -n "$rev" || dstFile=$repoName
|
|
||||||
|
|
||||||
# If the hash was given, a file with that hash may already be in the
|
# If the hash was given, a file with that hash may already be in the
|
||||||
# store.
|
# store.
|
||||||
|
|
|
@ -226,7 +226,7 @@ else
|
||||||
# If the hash was given, a file with that hash may already be in the
|
# If the hash was given, a file with that hash may already be in the
|
||||||
# store.
|
# store.
|
||||||
if test -n "$expHash"; then
|
if test -n "$expHash"; then
|
||||||
finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" git-export)
|
finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" source)
|
||||||
if ! nix-store --check-validity "$finalPath" 2> /dev/null; then
|
if ! nix-store --check-validity "$finalPath" 2> /dev/null; then
|
||||||
finalPath=
|
finalPath=
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -23,7 +23,7 @@ test -n "$rev" || rev="tip"
|
||||||
# If the hash was given, a file with that hash may already be in the
|
# If the hash was given, a file with that hash may already be in the
|
||||||
# store.
|
# store.
|
||||||
if test -n "$expHash"; then
|
if test -n "$expHash"; then
|
||||||
finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" hg-archive)
|
finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" source)
|
||||||
if ! nix-store --check-validity "$finalPath" 2> /dev/null; then
|
if ! nix-store --check-validity "$finalPath" 2> /dev/null; then
|
||||||
finalPath=
|
finalPath=
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue