# Merge request failure on git-clone step (Gitlab Private Repo)

**URL:** <https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198>\
**Category:** Builds\
**Tags:** gitlab, git-clone\
**Created:** [June 4, 2020, 4:08am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198 "2020-06-04T04:08:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raquezha](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/raquezha/32/2978_2.png) [@raquezha](https://discuss.bitrise.io/u/raquezha)\
**Post date:** [June 4, 2020, 4:08am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198/1 "2020-06-04T04:08:39Z")

</div>

NOTE: This is the same issue reported here:

1. [Gitlab merge request failure on git-clone step (if PR is sent from a private fork)](http://discuss.bitrise.io/t/gitlab-merge-request-failure-on-git-clone-step-if-pr-is-sent-from-a-private-fork/4603) but it is now closed.
2. [Git-clone fails when PR is sent from private fork (Github)](http://discuss.bitrise.io/t/git-clone-fails-when-pr-is-sent-from-private-fork-github/9677)

–

> all GITLAB PR trigger fails on git-clone step

**Where did the issue happen?**

```auto
git "init"
Initialized empty Git repository in /bitrise/src/.git/
git "remote" "add" "origin" "git@gitlab.com:xxxxxx/xxxxx-harmonia/xxxxx-plus.git"
git "fetch" "origin" "bitrise"
Warning: Permanently added 'gitlab.com,xxx.xx.xxx.xx' (ECDSA) to the list of known hosts.
From gitlab.com:xxxxxx/xxxxx--harmonia/xxxxx-plus
 * branch bitrise -> FETCH_HEAD
 * [new branch] bitrise -> origin/bitrise
ERROR: auto merge, error: there is no Pull Request branch and can't download diff file
| |
+---+---------------------------------------------------------------+----------+
| x | git-clone@4 (exit code: 1) | 9.55 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-git-clone/issues |
| Source: https://github.com/bitrise-io/steps-git-clone |
+---+---------------------------------------------------------------+----------+

```

## Description of the issue

Sent a Merge Request from a private repo to a private repo (GITLAB)

## Environment:

**Where did the issue happen?**

on Android & Docker, on Ubuntu 16.04

**Which build Step causes the issue and which version of the step?**

Git Clone v4.0.18

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : **NO**
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : **NO**
- _Does the issue happen sporadically, or every time?_ : **YES**
- _Does upgrading the build Step to the latest version help?_ : **NO**
- _When did the issue start?_ : **Well everytime I file a merge request**

😀

---

<div class="post-metadata">

**Author:** ![raquezha](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/raquezha/32/2978_2.png) [@raquezha](https://discuss.bitrise.io/u/raquezha)\
**Post date:** [June 8, 2020, 5:26pm UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198/2 "2020-06-08T17:26:22Z")

</div>

is there any alternative solution this issue?

---

<div class="post-metadata">

**Author:** ![mis](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/mis/32/3010_2.png) [@mis](https://discuss.bitrise.io/u/mis)\
**Post date:** [June 12, 2020, 1:39am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198/3 "2020-06-12T01:39:31Z")

</div>

I face similar issue here.  
but my case is forked repo merge to upstream repo. (self-hosted GitLab)  
all repo’s `Project visibility` are `Internal`.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [June 25, 2020, 9:38am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198/4 "2020-06-25T09:38:24Z")

</div>

Sorry to hear about the issues! Can you guys please include build URLs with your report? It would really help if we could access the logs completely. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [July 25, 2020, 9:38am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198/5 "2020-07-25T09:38:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
