bash prompt: run 'git rev-parse --git-dir' directly instead of __gitdir()
[gitweb.git] / contrib / completion / git-completion.bash
index 6c3bafeea569601c4b55de165eb7f56ac3be1d31..ebc40d4845586bcdd7df8f02c34db9b157cfe149 100644 (file)
@@ -33,8 +33,6 @@ esac
 # returns location of .git repo
 __gitdir ()
 {
-       # Note: this function is duplicated in git-prompt.sh
-       # When updating it, make sure you update the other one to match.
        if [ -z "${1-}" ]; then
                if [ -n "${__git_dir-}" ]; then
                        echo "$__git_dir"