forked from mirrors/nixpkgs
echo to stderr in stead of stdout. else hydra cannot read hash/path
svn path=/nixpkgs/trunk/; revision=18448
This commit is contained in:
parent
4f20056bca
commit
4dca2c8b12
|
@ -39,14 +39,14 @@ if test -z "$finalPath"; then
|
||||||
git clone "$url" $tmpFile 1>&2
|
git clone "$url" $tmpFile 1>&2
|
||||||
if test -n "$rev"; then
|
if test -n "$rev"; then
|
||||||
cd $tmpFile
|
cd $tmpFile
|
||||||
echo $tmpFile
|
echo $tmpFile >&2
|
||||||
git checkout $rev 1>&2
|
git checkout $rev 1>&2
|
||||||
fi
|
fi
|
||||||
# Allow doing additional processing before .git removal
|
# Allow doing additional processing before .git removal
|
||||||
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
||||||
if test "$NIX_PREFETCH_GIT_LEAVE_DOT_GIT" != 1
|
if test "$NIX_PREFETCH_GIT_LEAVE_DOT_GIT" != 1
|
||||||
then
|
then
|
||||||
echo "removing \`.git'..."
|
echo "removing \`.git'..." >&2
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue