Strip gitdir from repo paths