Skip to content

Commit 10d4232

Browse files
committed
Remove git status check (false possitive)
1 parent dc712fe commit 10d4232

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/dogfood.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ try {
5555
function global:prompt {
5656
# Run command agains $env:SDK_REPO_ROOT to see if there are any changes
5757
$testDotnetSdkCurrentHash = git -C $env:SDK_REPO_ROOT rev-parse HEAD
58-
$hasGitChanges = (git status -C $env:SDK_REPO_ROOT --porcelain) -ne "" -or $testDotnetSdkCurrentHash -ne $env:TestDotnetSdkHash
58+
$hasGitChanges = $testDotnetSdkCurrentHash -ne $env:TestDotnetSdkHash
5959
if ($hasGitChanges) {
6060
"$([char]0x1b)[0;35m(dotnet dogfood *)$([char]0x1b)[0m $PWD > "
6161
} else {

eng/dogfood.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export PATH=$testDotnetRoot:$PATH
2828
export DOTNET_ROOT=$testDotnetRoot
2929

3030
testDotnetSdkCurrentHash = git -c $SDK_REPO_ROOT rev-parse HEAD
31-
hasGitChanges = $(git -c $SDK_REPO_ROOT status --porcelain) != "" or $testDotnetSdkCurrentHash != $TestDotnetSdkHash
31+
hasGitChanges = $testDotnetSdkCurrentHash != $TestDotnetSdkHash
3232

3333
if [$hasGitChanges]; then
3434
export PS1="\x1b[0;35m(dotnet dogfood*)\x1b[0m $PS1"

0 commit comments

Comments
 (0)