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

#1

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@github.com:X/Y.git"
git "fetch" "origin" "master"
Warning: Permanently added 'github.com,x.x.x.x' (RSA) to the list of known hosts.
From github.com:X/Y
 * 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: https://github.com/bitrise-io/steps-git-clone/issues          |
| Source: https://github.com/bitrise-io/steps-git-clone                        |
+---+---------------------------------------------------------------+----------+

Description of the issue

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

Environment:

Where did the issue happen?

Visual Studio for Mac, Stable channel

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

git-clone@4.0.14

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

0 Likes

#2

Hi @geralditvlk!

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

0 Likes

closed #3

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

0 Likes