Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
472 B · 22 lines
PHP
1234567891011121314151617181920212223<?php
final class DiffusionGitRequest extends DiffusionRequest {
protected function isStableCommit($symbol) { if ($symbol === null) { return false; } return preg_match('/^[a-f0-9]{40}\z/', $symbol); }
public function getBranch() { if ($this->branch) { return $this->branch; } if ($this->repository) { return $this->repository->getDefaultBranch(); } throw new Exception(pht('Unable to determine branch!')); }
}