From: Silvio Rhatto Date: Tue, 15 Jan 2013 18:54:07 +0000 (-0200) Subject: Minor changes at GIT_FOLDER X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9d8ade1f5314dcad5845cf8ae5308cbd557b4344;p=scripts.git Minor changes at GIT_FOLDER --- diff --git a/commit b/commit index bc226f0..03e9a8a 100755 --- a/commit +++ b/commit @@ -89,7 +89,11 @@ function git_user { if [ -e "$HOME/.gitconfig" ]; then echo "You should try to use your default setting:" - echo "cat <> $GIT_FOLDER/.git/config" + if [ "$GIT_FOLDER" == "$(pwd)" ]; then + echo "cat <> .git/config" + else + echo "cat <> $GIT_FOLDER/.git/config" + fi grep -A 2 "^\[user\]" $HOME/.gitconfig echo "EOF" fi