strip auth info from debug info dump

This commit is contained in:
Shish 2020-06-24 15:09:53 +01:00
parent 81417a5031
commit bb5614c5ef

View file

@ -103,6 +103,7 @@ class ET extends Extension
$commitHash = trim(exec('git log --pretty="%h" -n1 HEAD'));
$commitBranch= trim(exec('git rev-parse --abbrev-ref HEAD'));
$commitOrigin= trim(exec('git config --get remote.origin.url'));
$commitOrigin= preg_replace("#//.*@#", "//xxx@", $commitOrigin);
$info['git'] = [
'commit' => $commitHash,
'branch' => $commitBranch,