Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539316
DiffusionGitRequest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
472 B
Referenced Files
None
Subscribers
None
DiffusionGitRequest.php
View Options
<?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!'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:08 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
97375
Default Alt Text
DiffusionGitRequest.php (472 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment