shell: fix pre-commit on deleted files

This commit is contained in:
Timothy DeHerrera 2021-02-01 14:05:53 -07:00
parent 7fed7e7392
commit e7d9abfdcd
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ pkgs.devshell.mkShell {
# Format staged nix files.
exec ${nixpkgs-fmt}/bin/nixpkgs-fmt \
$(
${git}/bin/git diff-index --name-only --cached $against -- \
${git}/bin/git diff-index --name-only --cached $against --diff-filter d -- \
| ${ripgrep}/bin/rg '\.nix$'
)
'';