Skip to content

Commit

Permalink
Merge pull request #2 from maxim-tashkinov/fix-image-name-split
Browse files Browse the repository at this point in the history
Possibility of copying of images with references registry/repository/…
  • Loading branch information
vbaksa authored Jul 30, 2019
2 parents 4c70fc1 + da3997b commit 01f99cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ func ImageNameAndRegistryAndTag(src string) (registry string, image string, tag

}
registry = s[0]
image = s[1] + "/" + s[2]

image = strings.Join(s[1:], "/")

imageAndTag := strings.Split(image, ":")
//Image name and tag specified
if len(imageAndTag) > 1 {
Expand Down

0 comments on commit 01f99cb

Please sign in to comment.