mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Ignore submodules when figuring out whether there are local changes
This commit is contained in:
parent
4f5fde800c
commit
5a6d9e4efa
@ -51,9 +51,9 @@ try {
|
|||||||
$isGit = Test-Path .git
|
$isGit = Test-Path .git
|
||||||
|
|
||||||
if ($isGit) {
|
if ($isGit) {
|
||||||
git diff --no-patch --exit-code > $null
|
git diff --ignore-submodules --no-patch --exit-code > $null
|
||||||
$unstagedChanges = ($LASTEXITCODE -ne 0)
|
$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)
|
$stagedChanges = ($LASTEXITCODE -ne 0)
|
||||||
|
|
||||||
if ($unstagedChanges -or $stagedChanges) {
|
if ($unstagedChanges -or $stagedChanges) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user