Merge pull request #662 from surajnarwade/minor-fix

Removing unused function taggedimage
This commit is contained in:
Suraj Deshmukh 2017-06-21 11:25:10 +05:30 committed by GitHub
commit 04748ee153

View File

@ -99,27 +99,6 @@ func getImageTag(image string) string {
}
// Inputs name of the service + provided image
// Outputs name is image is blank, but still provide a tag.
func taggedImage(name string, serviceImage string) string {
var image string
tag := getImageTag(serviceImage)
// Use the image name if not blank
if serviceImage != "" {
image = serviceImage
} else {
image = name
}
// Add a tag if not present
if !strings.Contains(image, ":") {
image = image + ":" + tag
}
return image
}
// hasGitBinary checks if the 'git' binary is available on the system
func hasGitBinary() bool {
_, err := exec.LookPath("git")