From f353440268647fc4d600ac71f0706cc9e54c2168 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Sep 2017 18:57:16 -0300 Subject: Adds hit, the git interceptor --- commit-updates | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'commit-updates') 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 -- cgit v1.2.3