]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fixing sync behavior
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Jan 2012 11:41:48 +0000 (09:41 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Jan 2012 11:41:48 +0000 (09:41 -0200)
share/hydra/sync

index 2d59647a2377d31e75b7ecc97c51a0d05888c01e..56bffe1f732530d334dccf8547796266937db948 100755 (executable)
@@ -23,10 +23,16 @@ if [ -z "$1" ]; then
   REPOSITORIES="bootless dns gitosis/public gitosis/private puppet"
 else
   REPOSITORIES="$*"
+  UPDATE_KEYRINGER="no"
 fi
 
 # Sync each repository.
 for repository in $REPOSITORIES; do
+  if [ "$repository" == "keyringer" ]; then
+    UPDATE_KEYRINGER="yes"
+    continue
+  fi
+
   if [ -d "$HYDRA_FOLDER/$repository/.git" ]; then
     echo "Syncing $repository..."
     ( cd $HYDRA_FOLDER/$repository && git pull origin master && git submodule update --init )
@@ -34,5 +40,7 @@ for repository in $REPOSITORIES; do
 done
 
 # Update keyring.
-echo "Updating keyringer..."
-keyringer $HYDRA git pull
+if [ "$UPDATE_KEYRINGER" != "no" ]; then
+  echo "Syncing keyringer..."
+  keyringer $HYDRA git pull
+fi