# Clone issue every now and then

**URL:** <https://drone.discourse.group/t/clone-issue-every-now-and-then/5730>\
**Category:** Drone Support\
**Created:** [October 17, 2017, 4:35am UTC](https://drone.discourse.group/t/clone-issue-every-now-and-then/5730 "2017-10-17T04:35:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishal24tuniki](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@vishal24tuniki](https://drone.discourse.group/u/vishal24tuniki)\
**Post date:** [October 17, 2017, 4:35am UTC](https://drone.discourse.group/t/clone-issue-every-now-and-then/5730/1 "2017-10-17T04:35:38Z")

</div>

Hi, as a part of pipeline, this clone issue keeps happening once in a while

```
+ git init
0s
2
Initialized empty Git repository in /drone/src/github.com/org/repo/.git/
0s
3
+ git remote add origin https://github.com/org/repo.git
0s
4
+ git fetch --no-tags origin +refs/pull/235/merge:
0s
5
fatal: Couldn't find remote ref refs/pull/235/merge
0s
6
exit status 128
```

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [October 17, 2017, 7:58am UTC](https://drone.discourse.group/t/clone-issue-every-now-and-then/5730/2 "2017-10-17T07:58:41Z")

</div>

> [@On another topic](https://drone.discourse.group/t/891/1):
>
> Couldn’t find remote ref refs/pull/235/merge

there are two scenarios in which this happens

- your pull request has a merge conflict, in which case no merge ref exists. This is expected to fail
- github sends the pull request hook before it has created the merge commit. You can alternatively configure drone to use the head ref instead of the merge ref (see the github configuration docs)
