]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Fetches repo at commit-updates
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 14 May 2017 17:10:32 +0000 (14:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 14 May 2017 17:10:32 +0000 (14:10 -0300)
commit-updates

index a6aa245da35a1093fc32cc0ea7c6c11743cf5512..b0333481d8dfc501fdb0cb12cfe4dee763b472a9 100755 (executable)
@@ -13,10 +13,13 @@ if git status &> /dev/null; then
   else
     commit "Updates $(basename `pwd`)"
   fi
+
+  git fetch --all
 else
   if [ ! -z "$1" ] && [ -d "$1" ]; then
-    ( cd $1 &> /dev/null && commit "Updates $(basename $1)" )
+    ( cd $1 &> /dev/null && commit "Updates $(basename $1)" && git fetch --all )
   else
     mr commit -m "Updates"
+    mr fetch
   fi
 fi