aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/sync10
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