[et] add commit info to versions.shimmie where people are more likely to copy-paste it

This commit is contained in:
Shish 2024-02-19 13:10:10 +00:00
parent 06db4a12e0
commit 2f2985f3eb

View file

@ -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,