Differential D14813 Diff 35813 src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php
Show All 25 Lines | protected function executeQuery() { | ||||
$any = ($this->isTag || $this->isOriginBranch); | $any = ($this->isTag || $this->isOriginBranch); | ||||
if (!$any) { | if (!$any) { | ||||
throw new Exception(pht('Specify types of refs to query.')); | throw new Exception(pht('Specify types of refs to query.')); | ||||
} | } | ||||
if ($this->isOriginBranch) { | if ($this->isOriginBranch) { | ||||
if ($repository->isWorkingCopyBare()) { | if ($repository->isWorkingCopyBare()) { | ||||
$prefix = 'refs/changes/'; | |||||
} | |||||
if ($repository->isWorkingCopyBare()) { | |||||
$prefix = 'refs/heads/'; | $prefix = 'refs/heads/'; | ||||
} else { | } else { | ||||
$remote = DiffusionGitBranch::DEFAULT_GIT_REMOTE; | $remote = DiffusionGitBranch::DEFAULT_GIT_REMOTE; | ||||
$prefix = 'refs/remotes/'.$remote.'/'; | $prefix = 'refs/remotes/'.$remote.'/'; | ||||
} | } | ||||
$prefixes[] = $prefix; | $prefixes[] = $prefix; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |