From: Silvio Rhatto Date: Sat, 3 Jun 2017 02:16:30 +0000 (-0300) Subject: Updates utils-git X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bfefcf85fed4075594372c43dc14d139120bbf88;p=utils-git.git Updates utils-git --- diff --git a/commit-updates b/commit-updates index ab56b2e..a70d3c9 100755 --- a/commit-updates +++ b/commit-updates @@ -8,8 +8,10 @@ PROJECT="$1" # Check if param is a project if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then - cd $PROJECT &> /dev/null - shift + if ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then + cd $PROJECT &> /dev/null + shift + fi fi # Commit message