mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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.
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user