Git-clone fails when PR is sent from private fork (Github)

Bitrise Build Issue Report template

all Github PR trigger fails on git-clone step

git "init"
Initialized empty Git repository in /Users/vagrant/git/.git/
git "remote" "add" "origin" ""
git "fetch" "origin" "master"
Warning: Permanently added ',x.x.x.x' (RSA) to the list of known hosts.
 * branch              master     -> FETCH_HEAD
 * [new branch]        master     -> origin/master
ERROR: auto merge, error: there is no Pull Request branch and can't download diff file
|                                                                              |
| x | git-clone@4.0.14 (exit code: 1)                               | 9.55 sec |
| Issue tracker:          |
| Source:                        |

Description of the issue

Sent a PR from a private repo to a private repo. The build fails with the above log.


Where did the issue happen?

Visual Studio for Mac, Stable channel

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



  • 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. : 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? :

Build log

1 Like

Hi @geralditvlk!

Is this also happening if you adjust the ManualMerge input to true instead of false?

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