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

Fix checkout initial before calling rmpr #1124

Merged
merged 1 commit into from
Feb 6, 2017
Merged

Fix checkout initial before calling rmpr #1124

merged 1 commit into from
Feb 6, 2017

Conversation

emilevauge
Copy link
Member

Signed-off-by: Emile Vauge emile@vauge.com

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐳

@@ -24,6 +24,7 @@ branch=$(curl -s https://api.github.com/repos/containous/traefik/pulls/$pr | jq

clean ()
{
git checkout $initial
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔

Copy link
Member Author

@emilevauge emilevauge Feb 6, 2017

Choose a reason for hiding this comment

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

If you call rmpr while you are checked out on your remote branch, rmpr will try to delete the branch you are on and it will fail. We have to checkout another branch before.

Copy link
Contributor

Choose a reason for hiding this comment

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

I know 👼 🤔 <- that was for "why didn't I see that before" 😛

Signed-off-by: Emile Vauge <emile@vauge.com>
@emilevauge emilevauge merged commit 39f8f68 into master Feb 6, 2017
@vdemeester vdemeester deleted the fix-git-rmpr branch February 6, 2017 18:12
@ldez ldez added this to the 1.2 milestone Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants