fix: Add HOME env to subprocess for git config access

Git needs HOME environment variable to find ~/.gitconfig with
safe.directory setting when running as root. Also reverts TEST2 marker.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-21 21:59:53 +01:00
parent 7013d20b7d
commit 1682c1227a
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@
</div> </div>
<div class="px-3 pb-2 text-muted small border-bottom d-flex align-items-center justify-content-between"> <div class="px-3 pb-2 text-muted small border-bottom d-flex align-items-center justify-content-between">
<span id="versionDisplay"> <span id="versionDisplay">
<i class="bi bi-tag"></i> <span id="versionText">{{ version }}</span> <span class="text-info">[TEST2]</span> <i class="bi bi-tag"></i> <span id="versionText">{{ version }}</span>
<span class="badge bg-secondary ms-1" id="branchBadge">{{ git_branch }}</span> <span class="badge bg-secondary ms-1" id="branchBadge">{{ git_branch }}</span>
</span> </span>
<button id="checkUpdateBtn" class="btn btn-sm btn-outline-secondary py-0 px-1" title="Check for updates"> <button id="checkUpdateBtn" class="btn btn-sm btn-outline-secondary py-0 px-1" title="Check for updates">

View File

@@ -20,7 +20,7 @@ def subprocess_run(args):
capture_output=True, capture_output=True,
text=True, text=True,
check=True, check=True,
env={"PATH": os.environ.get("PATH", ""), "LC_ALL": "C"} env={"PATH": os.environ.get("PATH", ""), "HOME": os.environ.get("HOME", ""), "LC_ALL": "C"}
) )
return proc.stdout.strip() return proc.stdout.strip()