Before this we were getting a tags instead of branches when $label->type was set as (string) VERSIONCONTROL_LABEL_BRANCH.

For example try lo load something like this(with othe values), using a hash of a commit that is on a branch and see its labels:

$c = new VersioncontrolGitOperationController();
$commit_ids = array('0f0280aefe4d0c3384cb04a0bbb15c9543f46a69');
$b = new VersioncontrolGitBackend;
$repository = $b->loadEntity('repo',array(9));
$commits = $repository->loadCommits(array(), array('revision' => $commit_ids), array('may cache' => FALSE));
dsm($commits);

Comments

sdboyer’s picture

Status: Needs review » Reviewed & tested by the community

Ahh yeah...

marvil07’s picture

Status: Reviewed & tested by the community » Fixed

It's in!

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2

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

  • Commit 6db116f on repository-families, drush-vc-sync-unlock by marvil07:
    bug #1048204 by marvil07: Avoid non-recognizing the label type on...

  • Commit 6db116f on repository-families by marvil07:
    bug #1048204 by marvil07: Avoid non-recognizing the label type on...