File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
DevSkim-DotNet/Microsoft.DevSkim.CLI/Commands Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
- ## [ 1.0.39] - 20224-6-26
7
+ ## [ 1.0.40] - 2024-7-08
8
+ ## Fix
9
+ Fixes extraneous printing of git errors when git ignore checking is enabled during analysis.
10
+
11
+ ## [ 1.0.39] - 2024-6-26
8
12
### Pipelines
9
13
Pipeline maintenance.
10
14
Original file line number Diff line number Diff line change @@ -267,7 +267,8 @@ private static bool IsGitIgnored(string fp)
267
267
{
268
268
Arguments = $ "check-ignore { fp } ",
269
269
WorkingDirectory = Directory . GetParent ( fp ) ? . FullName ,
270
- RedirectStandardOutput = true
270
+ RedirectStandardOutput = true ,
271
+ RedirectStandardError = true // Suppress git errors being printed - particularly when not in a git work tree
271
272
} ) ;
272
273
process ? . WaitForExit ( ) ;
273
274
string ? stdOut = process ? . StandardOutput . ReadToEnd ( ) ;
You can’t perform that action at this time.
0 commit comments