fix the regression of building remote url (#935)

This commit is contained in:
Jingfang Liu
2019-03-29 13:10:11 -07:00
committed by GitHub
parent 42d9287985
commit 21a0cba43e
2 changed files with 2 additions and 3 deletions

View File

@@ -68,9 +68,8 @@ func ClonerUsingGitExec(repoSpec *RepoSpec) error {
"trouble adding remote %s",
repoSpec.CloneSpec())
}
if repoSpec.ref == "" {
return nil
repoSpec.ref = "master"
}
cmd = exec.Command(
gitProgram,