Don't alter .git/gitdir if it's already absolute path.