[et] add commit info to versions.shimmie where people are more likely to copy-paste it
This commit is contained in:
parent
06db4a12e0
commit
2f2985f3eb
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ class ET extends Extension
|
|||
$commitBranch = trim(exec_ex('git rev-parse --abbrev-ref HEAD'));
|
||||
$commitOrigin = trim(exec_ex('git config --get remote.origin.url'));
|
||||
$commitOrigin = preg_replace("#//.*@#", "//xxx@", $commitOrigin);
|
||||
$info['versions']['shimmie'] .= $commitHash;
|
||||
$info['versions']['origin'] = "$commitOrigin ($commitBranch)";
|
||||
$info['git'] = [
|
||||
'commit' => $commitHash,
|
||||
'branch' => $commitBranch,
|
||||
|
|
Reference in a new issue