File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 44package resource
55
66import (
7- "path/filepath "
7+ "path"
88 "strings"
99
1010 "sigs.k8s.io/kustomize/api/internal/git"
@@ -48,17 +48,17 @@ func (origin *Origin) Copy() Origin {
4848}
4949
5050// Append returns a copy of origin with a path appended to it
51- func (origin * Origin ) Append (path string ) * Origin {
51+ func (origin * Origin ) Append (inputPath string ) * Origin {
5252 originCopy := origin .Copy ()
53- repoSpec , err := git .NewRepoSpecFromURL (path )
53+ repoSpec , err := git .NewRepoSpecFromURL (inputPath )
5454 if err == nil {
5555 originCopy .Repo = repoSpec .CloneSpec ()
5656 absPath := repoSpec .AbsPath ()
57- path = absPath [strings .Index (absPath [1 :], "/" )+ 1 :][1 :]
57+ inputPath = absPath [strings .Index (absPath [1 :], "/" )+ 1 :][1 :]
5858 originCopy .Path = ""
5959 originCopy .Ref = repoSpec .Ref
6060 }
61- originCopy .Path = filepath .Join (originCopy .Path , path )
61+ originCopy .Path = path .Join (originCopy .Path , inputPath )
6262 return & originCopy
6363}
6464
You can’t perform that action at this time.
0 commit comments