Skip to content

Commit 01f99cb

Browse files
authored
Merge pull request #2 from maxim-tashkinov/fix-image-name-split
Possibility of copying of images with references registry/repository/…
2 parents 4c70fc1 + da3997b commit 01f99cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ func ImageNameAndRegistryAndTag(src string) (registry string, image string, tag
209209

210210
}
211211
registry = s[0]
212-
image = s[1] + "/" + s[2]
212+
213+
image = strings.Join(s[1:], "/")
214+
213215
imageAndTag := strings.Split(image, ":")
214216
//Image name and tag specified
215217
if len(imageAndTag) > 1 {

0 commit comments

Comments
 (0)