Skip to content

Commit

Permalink
Omit deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed Apr 8, 2024
1 parent 2b6957f commit 27687dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/scoop-update.ps1
Expand Up @@ -195,7 +195,7 @@ function Sync-Bucket {
Invoke-GitLog -Path $bucketLoc -Name $name -CommitHash $previousCommit
}
if (get_config USE_SQLITE_CACHE) {
Invoke-Git -Path $bucketLoc -ArgumentList @('diff', '--name-only', "$previousCommit..HEAD") | Where-Object {
Invoke-Git -Path $bucketLoc -ArgumentList @('diff', '--name-only', '--diff-filter=d', $previousCommit) | Where-Object {
$_ -match '^[^.].*\.json$'
} | ForEach-Object {
[void]($using:updatedFiles).Add($(Join-Path $bucketLoc $_))
Expand All @@ -213,7 +213,7 @@ function Sync-Bucket {
Invoke-GitLog -Path $bucketLoc -Name $name -CommitHash $previousCommit
}
if (get_config USE_SQLITE_CACHE) {
Invoke-Git -Path $bucketLoc -ArgumentList @('diff', '--name-only', "$previousCommit..HEAD") | Where-Object {
Invoke-Git -Path $bucketLoc -ArgumentList @('diff', '--name-only', '--diff-filter=d', $previousCommit) | Where-Object {
$_ -match '^[^.].*\.json$'
} | ForEach-Object {
[void]($updatedFiles).Add($(Join-Path $bucketLoc $_))
Expand Down

0 comments on commit 27687dc

Please sign in to comment.