зеркало из https://github.com/mislav/hub.git
Trivial refactoring of checkout command
This commit is contained in:
Родитель
9fc5600205
Коммит
1cf978ba00
|
@ -98,7 +98,7 @@ func transformCheckoutArgs(args *Args) error {
|
|||
remoteURL := fmt.Sprintf("+refs/heads/%s:refs/remotes/%s/%s", branch, user, branch)
|
||||
args.Before("git", "fetch", user, remoteURL)
|
||||
} else {
|
||||
u := url.Project.GitURL(pullRequest.Head.Repo.Name, user, pullRequest.Head.Repo.Private)
|
||||
u := url.Project.GitURL(headRepo.Name, user, headRepo.Private)
|
||||
args.Before("git", "remote", "add", "-f", "--no-tags", "-t", branch, user, u)
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче