Make rfetch a single file

This commit is contained in:
Talia 2020-01-07 17:08:33 +01:00
parent 26faa63689
commit 86e3c44561
2 changed files with 2 additions and 4 deletions

View File

@ -1,3 +0,0 @@
echo "Fetching $1"
cd $1
git fetch

View File

@ -1,3 +1,4 @@
#!/bin/sh
find . -type d -name '.git' \
| sed 's/\/\.git$//' \
| xargs -P $(nproc) -I % _fetchdir %
| xargs -P $(nproc) -I % sh -c "echo 'Fetching %...'; cd %; git fetch"