File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void WorkingDirectoryDoesNotExistCrashesWithInformativeMessage()
98
98
args ,
99
99
PathHelper . GetCurrentDirectory ( ) ) ;
100
100
101
- exitCode . ShouldBe ( 0 ) ;
101
+ exitCode . ShouldNotBe ( 0 ) ;
102
102
var outputString = output . ToString ( ) ;
103
103
outputString . ShouldContain ( $ "The working directory '{ workingDirectory } ' does not exist.", ( ) => outputString ) ;
104
104
}
Original file line number Diff line number Diff line change @@ -27,11 +27,12 @@ public Task StartAsync(CancellationToken cancellationToken)
27
27
{
28
28
var arguments = options . Value ;
29
29
log . Verbosity = arguments . Verbosity ;
30
- gitVersionExecutor . Execute ( arguments ) ;
30
+ System . Environment . ExitCode = gitVersionExecutor . Execute ( arguments ) ;
31
31
}
32
32
catch ( Exception exception )
33
33
{
34
34
Console . Error . WriteLine ( exception . Message ) ;
35
+ System . Environment . ExitCode = 1 ;
35
36
}
36
37
37
38
applicationLifetime . StopApplication ( ) ;
You can’t perform that action at this time.
0 commit comments