nixpkgs/pkgs/build-support/fetchgit/builder.sh

14 lines
196 B
Bash
Raw Normal View History

source $stdenv/setup
header "exporting $url (rev $rev) into $out"
git clone "$url" $out
if test -n "$rev"; then
cd $out
git checkout $rev
fi
find $out -name .git\* | xargs rm -rf
stopNest