]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Updates
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 06:01:45 +0000 (03:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 06:01:45 +0000 (03:01 -0300)
commit-updates

index a70d3c98d19131f4bb9c9279dc433b21af8362a7..69ba4e81971a36f4325303ffdf2bb54a50ec1867 100755 (executable)
@@ -8,7 +8,7 @@ PROJECT="$1"
 
 # Check if param is a project
 if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then
-  if ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then
+  if git status 2> /dev/null && ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then
     cd $PROJECT &> /dev/null
     shift
   fi