diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/sync | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/hydra/sync b/share/hydra/sync index 730d030..fc71b73 100755 --- a/share/hydra/sync +++ b/share/hydra/sync @@ -47,7 +47,15 @@ function hydra_sync { if [ "$repository" == "bootless" ]; then ( cd $HYDRA_FOLDER/$repository && git annex sync ) else - ( cd $HYDRA_FOLDER/$repository && git pull origin master && git submodule update --init ) + ( + cd $HYDRA_FOLDER/$repository + if git remote | grep -q "origin"; then + git pull origin master + git submodule update --init + else + echo "No origin repository configured for $repository, skipping..." + fi + ) fi fi done |