Change directory structure: user/repo/branch -> user/repo