From 5a6d9e4efab7537ece682944a69fae8e79139e6d Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Sun, 21 Jun 2020 14:35:54 +0100 Subject: [PATCH] Ignore submodules when figuring out whether there are local changes --- ue4-get-latest.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ue4-get-latest.ps1 b/ue4-get-latest.ps1 index a5dd508..de7597d 100644 --- a/ue4-get-latest.ps1 +++ b/ue4-get-latest.ps1 @@ -51,9 +51,9 @@ try { $isGit = Test-Path .git if ($isGit) { - git diff --no-patch --exit-code > $null + git diff --ignore-submodules --no-patch --exit-code > $null $unstagedChanges = ($LASTEXITCODE -ne 0) - git diff --no-patch --cached --exit-code > $null + git diff --ignore-submodules --no-patch --cached --exit-code > $null $stagedChanges = ($LASTEXITCODE -ne 0) if ($unstagedChanges -or $stagedChanges) {