# Build failing after branch for PR deleted

**URL:** <https://drone.discourse.group/t/build-failing-after-branch-for-pr-deleted/9563>\
**Category:** Drone Support\
**Created:** [February 16, 2018, 10:19pm UTC](https://drone.discourse.group/t/build-failing-after-branch-for-pr-deleted/9563 "2018-02-16T22:19:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clarktlaugh](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/clarktlaugh/32/4177_2.png) [@clarktlaugh](https://drone.discourse.group/u/clarktlaugh)\
**Post date:** [February 16, 2018, 10:19pm UTC](https://drone.discourse.group/t/build-failing-after-branch-for-pr-deleted/9563/1 "2018-02-16T22:19:09Z")

</div>

I’m just now starting to work with Drone, so this could be something I’ve not configured properly, but…

I have a build that is properly triggered on a new PR in GitHub Enterprise. The build is successful. When I close the PR and delete the branch, Drone runs a new build that fails with errors like this:

> git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> retry in 5s
> 
> - git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> retry in 5s
> - git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> retry in 5s
> - git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> retry in 5s
> - git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> retry in 5s
> - git fetch --no-tags origin +refs/pull/113/merge:  
> fatal: Couldn’t find remote ref refs/pull/113/merge  
> exit status 128

Is there a way to prevent this?
