[bash/git] s/__gitdir/git rev-parse --git-dir/g

This function is dropped in new version of git.