3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #1159 from bjornfor/fetchsvn

fetchsvn: handle redirect(s)
This commit is contained in:
Michael Raskin 2013-11-07 02:50:15 -08:00
commit b541b702ae

View file

@ -21,8 +21,8 @@ fi;
# Pipe the "p" character into Subversion to force it to accept the
# server's certificate. This is perfectly safe: we don't care
# whether the server is being spoofed --- only the cryptographic
# hash of the output matters.
echo 'p' | svn export ${ignoreExternals:+--ignore-externals} \
# hash of the output matters. Pass in extra p's to handle redirects.
printf 'p\np\np\n' | svn export ${ignoreExternals:+--ignore-externals} \
-r "$rev" "$url" "$out"
stopNest