Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121962757
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
Tue, Jul 15, 02:27
Size
379 B
Mime Type
text/x-php
Expires
Thu, Jul 17, 02:27 (2 d)
Engine
blob
Format
Raw Data
Handle
27418607
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