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-fork: Let curl exit with error code on fail #649

Merged
merged 1 commit into from
May 5, 2017
Merged

git-fork: Let curl exit with error code on fail #649

merged 1 commit into from
May 5, 2017

Conversation

adriaanzon
Copy link
Contributor

The next line checks if curl failed, and aborts the script if it has.

This adds the -f flag to the curl call, so when the request failed (i.e. when you typed a wrong password), the script aborts appropriately, instead of creating a branch for a non-existent remote.

@adriaanzon adriaanzon mentioned this pull request Apr 27, 2017
@spacewander spacewander merged commit 204406b into tj:master May 5, 2017
@spacewander
Copy link
Collaborator

@adriaanzon
LGTM. Merged!
Thank you for your patch!

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