Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90655115
DiffusionGitStableCommitNameQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 3, 15:07
Size
379 B
Mime Type
text/x-php
Expires
Tue, Nov 5, 15:07 (2 d)
Engine
blob
Format
Raw Data
Handle
22115355
Attached To
rPH Phabricator
DiffusionGitStableCommitNameQuery.php
View Options
<?php
final
class
DiffusionGitStableCommitNameQuery
extends
DiffusionStableCommitNameQuery
{
protected
function
executeQuery
()
{
$repository
=
$this
->
getRepository
();
$branch
=
$this
->
getBranch
();
list
(
$stdout
)
=
$repository
->
execxLocalCommand
(
'rev-parse --verify %s'
,
$branch
);
$commit
=
trim
(
$stdout
);
return
substr
(
$commit
,
0
,
16
);
}
}
Event Timeline
Log In to Comment