When HEAD branches off the same commit as multiple remote branches, the code goes into an endless loop trying to determine which remote branch is closest to HEAD.
When HEAD branches off the same commit as multiple remote branches, the code goes into an endless loop trying to determine which remote branch is closest to HEAD.
Comments
Comment #2
gábor hojtsyHm, interesting. Looking forward to insights as to why it happens this way.
Comment #3
gábor hojtsyComment #4
jungleCould not get it installed on my local as well.
Steps to reproduce:
$ git clone http://git.drupalcode.org/project/drupal.git$ git checkout 8.8.5$ composer install$ composer require drupal/git_deploy:^2.0 drupal/upgrade_status:^2.3 -vvv --dev$ php core/scripts/drupal install standard$ drush en git_deploy # Installed successful and quickly. I have had Acquia dev desktop 2 installed, so drush is available globally$ drush en upgrade_status # Have to hit command/ctrl + c to cancel it after more than 2 minsOr try to install the upgrade_status module from the UI, I tried a fresh installation with Acquia dev desktop 2, and installing the upgrade_status module from the UI, the same -- never-ending.
Comment #5
gábor hojtsyAny info in the logs?
Comment #6
jungleWhile trying to show logs to @Gábor Hojtsy with a fresh installation again, found that it looks like it's an issue of git_deploy, not upgrade_status. If this could be reproduced, let's report/move this to git_deploy
Comment #7
gábor hojtsyYeah I don't think it's in upgrade status, nothing happens on install in upgrade status. So I was assuming git_deploy gets in a loop.
Comment #8
jungleFigured it out that the git repo structure matters.
If what @VladimirAus reported was the same as me, we should move this issue under git_deploy, or to file a new issue under git_deploy is necessary.
Comment #9
jungleMoving to git_deploy as @Gábor Hojtsy told on slack. Feel free to move back if it is not the same as the one reported by VladimirAus originally.
Comment #10
andypostComment #11
joelpittetI'm running into this as well, I'm installing on an existing project using https://github.com/drupal-composer/drupal-project which is similar where the git repo.
Thanks for pointing me at this issue @Gábor Hojtsy
Comment #12
joelpittetI think I'm having the opposite problem as #8.
My git is outside the drupal root folder:
And it just hangs at
Maybe it's a different problem after all... I'll keep in touch
Comment #13
darren ohThis issue was more clearly reported for the 7.x-2.x branch (#3127208: Fix core version detection when site root is not a Drupal repository), so I am treating that as the parent issue. When that patch passes community review, it can be ported to the 8.x-2.x branch.
Comment #14
darren ohNever mind. I found the endless loop. I am testing a fix.
Comment #15
darren ohComment #16
darren ohComment #18
darren ohComment #20
joelpittetThanks @Darren Oh that seemed to fix it for me!