diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-02 23:16:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-02 23:16:30 -0300 |
commit | bfefcf85fed4075594372c43dc14d139120bbf88 (patch) | |
tree | 478394b8dede0be2f7d5e4d33cddc988ae75bb09 /commit-updates | |
parent | dc7e45b1fa836f943440aa6a6b91ec9765ba25e3 (diff) | |
download | utils-git-bfefcf85fed4075594372c43dc14d139120bbf88.tar.gz utils-git-bfefcf85fed4075594372c43dc14d139120bbf88.tar.bz2 |
Updates utils-git
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 6 |
1 files changed, 4 insertions, 2 deletions
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 |