diff options
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commit-updates b/commit-updates index 93faf12..2a71c1d 100755 --- a/commit-updates +++ b/commit-updates @@ -6,6 +6,9 @@ # Parameters PROJECT="$1" +# Git application we use +GIT="hit" + # Check if param is a project if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then if ! git status &> /dev/null; then @@ -21,7 +24,7 @@ fi ARGS="$*" # Simply update commit -if git status &> /dev/null; then +if $GIT status &> /dev/null; then if [ ! -z "$ARGS" ]; then commit "Updates $ARGS" else |