Skip to content

Commit 056ce0e

Browse files
committed
Fix exit code for git-tool-config
1 parent 101017f commit 056ce0e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

utils/query-state/Configuration.psm1

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11

22
function Get-Configuration() {
3-
$remote = Get-ConfiguredRemote
4-
return @{
5-
remote = $remote
6-
dependencyBranch = Get-ConfiguredDependencyBranch
7-
defaultServiceLine = Get-ConfiguredDefaultServiceLine -remote $remote
8-
atomicPushEnabled = Get-ConfiguredAtomicPushEnabled
3+
try {
4+
$remote = Get-ConfiguredRemote
5+
return @{
6+
remote = $remote
7+
dependencyBranch = Get-ConfiguredDependencyBranch
8+
defaultServiceLine = Get-ConfiguredDefaultServiceLine -remote $remote
9+
atomicPushEnabled = Get-ConfiguredAtomicPushEnabled
10+
}
11+
} finally {
12+
$Global:LASTEXITCODE = 0
913
}
1014
}
1115

0 commit comments

Comments
 (0)