Page MenuHomestyx hydra

DiffusionGitRequest.php
No OneTemporary

DiffusionGitRequest.php

<?php
/**
* @group diffusion
*/
final class DiffusionGitRequest extends DiffusionRequest {
protected function getSupportsBranches() {
return true;
}
protected function didInitialize() {
if (!$this->commit) {
return;
}
$this->expandCommitName();
}
public function getBranch() {
if ($this->branch) {
return $this->branch;
}
if ($this->repository) {
return $this->repository->getDefaultBranch();
}
throw new Exception("Unable to determine branch!");
}
public function getCommit() {
if ($this->commit) {
return $this->commit;
}
$remote = DiffusionBranchInformation::DEFAULT_GIT_REMOTE;
return $remote.'/'.$this->getBranch();
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 7:58 PM (3 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1189012
Default Alt Text
DiffusionGitRequest.php (726 B)

Event Timeline