3
0
Fork 0
forked from mirrors/nixpkgs

nix-prefetch-git: Add rudimentary TopGit support.

svn path=/nixpkgs/trunk/; revision=26305
This commit is contained in:
Ludovic Courtès 2011-03-14 22:00:20 +00:00
parent 1573081b61
commit 3369508fa9

View file

@ -120,6 +120,17 @@ clone(){
# Checkout linked sources.
init_submodules;
if [ -f .topdeps ]; then
if tg help 2>&1 > /dev/null
then
echo "populating TopGit branches..."
tg remote --populate origin
else
echo "WARNING: would populate TopGit branches but TopGit is not available" >&2
echo "WARNING: install TopGit to fix the problem" >&2
fi
fi
cd $top;
}