3
0
Fork 0
forked from mirrors/nixpkgs

redirect stdout of git calls to stderr to allow git to work in hydra as input

svn path=/nixpkgs/trunk/; revision=18393
This commit is contained in:
Rob Vermaas 2009-11-17 15:50:20 +00:00
parent aed79cca1a
commit 66a537f774

View file

@ -36,11 +36,11 @@ if test -z "$finalPath"; then
trap "rm -rf $tmpPath" EXIT
# Perform the checkout.
git clone --depth 1 "$url" $tmpFile
git clone --depth 1 "$url" $tmpFile 1>&2
if test -n "$rev"; then
cd $tmpFile
echo $tmpFile
git checkout $rev
git checkout $rev 1>&2
fi
# Allow doing additional processing before .git removal
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"