There is a current bug in versioncontrol_git that makes default branch to be set to master even if there are not branches in the repository. Details on #1796382: Set default branch from reposync default plugin

The current patch offers a temporary work-around to fix it from here.

Comments

helmo’s picture

Status: Needs review » Reviewed & tested by the community

I see your working hard to fix the API. :)

Do you have a link to a project that fails without this patch?

The fix seems sound... It's now on http://git-drupal_7.redesign.devdrupal.org/node/1104672/git-instructions...

marvil07’s picture

Thanks for reviewing this!

The use case: the module is not showing the "empty repository" text when a new project, with empty repository, is created.
I tried to fix the problem here first just in case the fix in versioncontrol_git take too much time, but I actually fixed it after #1796382-5: Set default branch from reposync default plugin, so this patch is not really needed. So I will leave it to you if you want to add an extra check ;-)

helmo’s picture

Status: Reviewed & tested by the community » Fixed

Committed

drumm’s picture

Thanks, this does indeed get our automated testing further along.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit c0e9263 on 7.x-1.x, 7.x-1.x-dev authored by marvil07, committed by helmo:
    Issue #1983750 by marvil07: Fixed Make sure the default branch exists...