# Checkout specific branch not working on push/PR

**URL:** <https://discuss.bitrise.io/t/checkout-specific-branch-not-working-on-push-pr/4132>\
**Category:** Builds\
**Created:** [February 13, 2018, 10:15am UTC](https://discuss.bitrise.io/t/checkout-specific-branch-not-working-on-push-pr/4132 "2018-02-13T10:15:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 22, 2018, 6:12pm UTC](https://discuss.bitrise.io/t/checkout-specific-branch-not-working-on-push-pr/4132/3 "2018-02-22T18:12:50Z")

</div>

> [@boylenssen](#):
>
> So I removed the default parameters in these fields and now it always takes ‘develop’

That’s true, but that means you’re not ignoring the commit parameter if I understand it correctly, which means your builds are always testing the head of the branch instead of the commit you can see on the build’s page.

Ideally, if it’s possible, you should avoid pushing back from the build into the repo - please see this discussion for the details: [Intermittent build failures to execute push\_to\_git\_remote & how to manage build number - #2 by viktorbenei](http://discuss.bitrise.io/t/intermittent-build-failures-to-execute-push-to-git-remote-how-to-manage-build-number/382/2)

If you’d have any questions just let us know! 😉

---

_[View the full topic](https://discuss.bitrise.io/t/checkout-specific-branch-not-working-on-push-pr/4132)._
