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

git-fresh-branch: fix handling of 'yes' response when there are changes #600

Merged
merged 1 commit into from
Nov 19, 2016

Conversation

richardfearn
Copy link
Contributor

break isn't valid in its current location in the script, resulting in an error like:

/usr/bin/git-fresh-branch: line 42: break: only meaningful in a `for', `while', or `until' loop

Since there's a call to clean right at the end of the script, do nothing if anything beginning Y or y is entered; execution will continue to the end of the script, and clean will be called.

'break' isn't valid in its current location in the script, resulting in an
error like:

  /usr/bin/git-fresh-branch: line 42: break: only meaningful in a `for', `while', or `until' loop

Since there's a call to 'clean' right at the end of the script, do nothing if
anything beginning 'Y' or 'y' is entered; execution will continue to the end
of the script, and 'clean' will be called.
@spacewander spacewander merged commit fd2de52 into tj:master Nov 19, 2016
@spacewander
Copy link
Collaborator

Thanks for your fix!

@richardfearn richardfearn deleted the git-fresh-branch-fix branch November 19, 2016 17:31
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.

2 participants