From 2f2985f3eb558caf3541fcacaaaac065704dec8b Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 19 Feb 2024 13:10:10 +0000 Subject: [PATCH] [et] add commit info to versions.shimmie where people are more likely to copy-paste it --- ext/et/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/et/main.php b/ext/et/main.php index 1df0e863..54e4e252 100644 --- a/ext/et/main.php +++ b/ext/et/main.php @@ -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,