test: cover explicit git -C terminal probe
This commit is contained in:
+10
-2
@@ -7928,8 +7928,16 @@ def gitea_diagnose_terminal(
|
||||
|
||||
return {
|
||||
"healthy": probe_res["healthy"],
|
||||
"error_type": None if probe_res["healthy"] else probe_res["error_type"] or diag["error_type"],
|
||||
"error_msg": "" if probe_res["healthy"] else probe_res["error_msg"] or diag["error_msg"],
|
||||
"error_type": (
|
||||
None
|
||||
if probe_res["healthy"]
|
||||
else probe_res["error_type"] or diag["error_type"]
|
||||
),
|
||||
"error_msg": (
|
||||
""
|
||||
if probe_res["healthy"]
|
||||
else probe_res["error_msg"] or diag["error_msg"]
|
||||
),
|
||||
"cwd": resolved_cwd,
|
||||
"command": probe_cmd,
|
||||
"diagnostics": diag,
|
||||
|
||||
Reference in New Issue
Block a user