diff --git a/.github/cpr.sh b/.github/cpr.sh index 18821a8fb..eb5d89d4f 100755 --- a/.github/cpr.sh +++ b/.github/cpr.sh @@ -23,4 +23,4 @@ branch=$(curl -s https://api.github.com/repos/containous/traefik/pulls/$pr | jq git remote add $remote git@github.com:$remote/traefik.git git fetch $remote $branch -git checkout -t $remote/$branch \ No newline at end of file +git checkout -t -b "$pr--$branch" $remote/$branch \ No newline at end of file diff --git a/.github/rmpr.sh b/.github/rmpr.sh index 03e818e88..2f9a6f558 100755 --- a/.github/rmpr.sh +++ b/.github/rmpr.sh @@ -23,5 +23,5 @@ branch=$(curl -s https://api.github.com/repos/containous/traefik/pulls/$pr | jq # clean git checkout $initial -git branch -D $branch +git branch -D "$pr--$branch" git remote remove $remote \ No newline at end of file diff --git a/.github/rpr.sh b/.github/rpr.sh index 8049088c0..57e9f7a9b 100755 --- a/.github/rpr.sh +++ b/.github/rpr.sh @@ -33,4 +33,4 @@ trap clean EXIT .github/cpr.sh $pr git rebase $base -git push --force-with-lease $remote $branch +git push --force-with-lease $remote "$pr--$branch"