]> gitweb.fluxo.info Git - scripts.git/commitdiff
Giving to the user the full path for .git/config
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Jan 2013 18:48:30 +0000 (16:48 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Jan 2013 18:48:30 +0000 (16:48 -0200)
commit

diff --git a/commit b/commit
index 2be27dd3a38c81f8ccb7212e136dc0e7a4edb06b..bc226f00fa41bf688af9c0f798836f0ef3bee76e 100755 (executable)
--- a/commit
+++ b/commit
@@ -89,7 +89,7 @@ function git_user {
 
    if [ -e "$HOME/.gitconfig" ]; then
      echo "You should try to use your default setting:"
-     echo "cat <<EOF >> .git/config"
+     echo "cat <<EOF >> $GIT_FOLDER/.git/config"
      grep -A 2 "^\[user\]" $HOME/.gitconfig
      echo "EOF"
    fi