Fix: Install - Powershell's stash

This commit is contained in:
alstjr7375 2022-04-26 04:05:32 +09:00
parent e495a2b144
commit fd7dde3efe

View file

@ -889,7 +889,7 @@ function Stash-File() {
) )
if ( "$(git --git-dir "${gitDir}" --work-tree "${leptonDir}" diff --stat)" -ne '' ) { if ( "$(git --git-dir "${gitDir}" --work-tree "${leptonDir}" diff --stat)" -ne '' ) {
git --git-dir "${gitDir}" --work-tree "${leptonDir}" checkout stash git --git-dir "${gitDir}" --work-tree "${leptonDir}" stash
return $true return $true
} }
return $false return $false
@ -905,7 +905,7 @@ function Restore-File() {
) )
if ( "${gitDirty}" -eq $true ) { if ( "${gitDirty}" -eq $true ) {
git --git-dir "${gitDir}" --work-tree "${leptonDir}" checkout stash pop --quiet git --git-dir "${gitDir}" --work-tree "${leptonDir}" stash pop --quiet
} }
} }