versioncontrol_project_git is adding the ability for sandbox and project owners to set a default branch, $repo->default_branch. Project Git Instructions should load that default.

Comments

helmo’s picture

Status: Active » Needs review

The use of the default branch was already added via #1291674: Use VersioncontrolGitRepository::getDefaultBranch() for the default selection.
We use the getDefaultBranch() method.

It does need testing and deployment though.

eliza411’s picture

I opened this because it wasn't using the default branch when we tested the code integration on Saturday to make sure I followed up ... I am not sure what version of Project Git Instructions sdboyer was working with, so I'll check that first. Thanks!

sdboyer’s picture

my bad, yup, putting the latest code out there works fine.

let's please roll a 6.x-1.2.

eliza411’s picture

Status: Needs review » Reviewed & tested by the community

We tested this on git6.

I verified that the default branch is displayed for anonymous users, maintainers, and in the non-maintainer maintainer view.

Looks great.

eliza411’s picture

We tested this on git6.

I verified that the default branch is displayed for anonymous users, maintainers, and in the non-maintainer maintainer view.

Looks great.

helmo’s picture

I've rolled a 6.x-1.2 release.

eliza411’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -git deployment blocker +git deployment

Marking fixed and removing blocker tag. Thanks, helmo!

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