git: treat "git -C '<path>'" as a no-op when <path> is empty