mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-29 17:41:13 +00:00
fix the regression of building remote url (#935)
This commit is contained in:
@@ -10,7 +10,7 @@ Running `kustomize build` against the url gives the same output.
|
|||||||
|
|
||||||
<!-- @remoteBuild @test -->
|
<!-- @remoteBuild @test -->
|
||||||
```
|
```
|
||||||
target=github.com/kubernetes-sigs/kustomize//examples/multibases?ref=v1.0.6
|
target=github.com/kubernetes-sigs/kustomize//examples/multibases
|
||||||
test 3 == \
|
test 3 == \
|
||||||
$(kustomize build $target | grep cluster-a-.*-myapp-pod | wc -l); \
|
$(kustomize build $target | grep cluster-a-.*-myapp-pod | wc -l); \
|
||||||
echo $?
|
echo $?
|
||||||
|
|||||||
@@ -68,9 +68,8 @@ func ClonerUsingGitExec(repoSpec *RepoSpec) error {
|
|||||||
"trouble adding remote %s",
|
"trouble adding remote %s",
|
||||||
repoSpec.CloneSpec())
|
repoSpec.CloneSpec())
|
||||||
}
|
}
|
||||||
|
|
||||||
if repoSpec.ref == "" {
|
if repoSpec.ref == "" {
|
||||||
return nil
|
repoSpec.ref = "master"
|
||||||
}
|
}
|
||||||
cmd = exec.Command(
|
cmd = exec.Command(
|
||||||
gitProgram,
|
gitProgram,
|
||||||
|
|||||||
Reference in New Issue
Block a user