forked from mirrors/nixpkgs
nix-prefetch-git: Add rudimentary TopGit support.
svn path=/nixpkgs/trunk/; revision=26305
This commit is contained in:
parent
1573081b61
commit
3369508fa9
|
@ -120,6 +120,17 @@ clone(){
|
||||||
# Checkout linked sources.
|
# Checkout linked sources.
|
||||||
init_submodules;
|
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;
|
cd $top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue