Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a warning/error message when pushing local component #573

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

mik-dass
Copy link
Contributor

@mik-dass mik-dass commented Jul 11, 2018

Issue: #571
Signed-off-by: mdas mrinald7@gmail.com

Adds a warning/error message when pushing local component to a component with a git repo or binary file as source in buildConfig

cmd/push.go Outdated
@@ -61,6 +61,10 @@ var pushCmd = &cobra.Command{
case "local", "binary":
// use value of '--dir' as source if it was used
if len(componentLocal) != 0 {
if sourceType == "binary" {
fmt.Println("unable to push local directory:" + componentLocal + " to component " + componentName + " that uses binary " + sourcePath)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use fmt.Printf. The message should be a sentence starting with the capital letter and ending with '.',

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kadel Done

…ent with a git repo or binary file as source in buildConfig

Signed-off-by: mdas <mrinald7@gmail.com>
@cdrage
Copy link
Member

cdrage commented Jul 16, 2018

This LGTM

@cdrage
Copy link
Member

cdrage commented Jul 19, 2018

@mik-dass Please update your commit message / PR description :)

@mik-dass
Copy link
Contributor Author

@cdrage Done

@cdrage
Copy link
Member

cdrage commented Jul 23, 2018

@mik-dass Your commit message still doesn't match your PR description.

Use git commit --amend and then a git force push git push -f to fix it.

Your current commit message is:

…ent with a git repo or binary file as source in buildConfig

@mik-dass
Copy link
Contributor Author

@cdrage But I guess my current commit message is

Adds a warning/error message when pushing local component to a component with a git repo or binary file as source in buildConfig

Even git commit amend shows me that.

@kadel kadel merged commit bc55fb4 into redhat-developer:master Jul 25, 2018
@mik-dass mik-dass deleted the warn_push_source branch July 25, 2018 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants