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

@@ -10,7 +10,7 @@ Running `kustomize build` against the url gives the same output.
<!-- @remoteBuild @test -->
```
target=github.com/kubernetes-sigs/kustomize//examples/multibases?ref=v1.0.6
target=github.com/kubernetes-sigs/kustomize//examples/multibases
test 3 == \
$(kustomize build $target | grep cluster-a-.*-myapp-pod | wc -l); \
echo $?

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,