Fix win_git error message

This commit is contained in:
Kenneth Benzie 2025-08-13 22:50:57 +01:00
parent ae689d46b1
commit 2286452f5b

View File

@ -93,7 +93,7 @@ function Get-GitRemoteHeadBranch {
$result = Run-Command -command $command -working_directory $dest $result = Run-Command -command $command -working_directory $dest
if ($result.rc -ne 0) { if ($result.rc -ne 0) {
$module.FailJson("Could not determine the default HEAD branch of remote: $remote" ` + $module.FailJson("Could not determine the default HEAD branch of remote: $remote" ` +
"$result.stdout $result.stderr") $result.stderr)
} }
return $result.stdout.Trim().Replace("$remote/", '') return $result.stdout.Trim().Replace("$remote/", '')
} }