shell: fix pre-commit on deleted files
This commit is contained in:
parent
7fed7e7392
commit
e7d9abfdcd
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ pkgs.devshell.mkShell {
|
||||||
# Format staged nix files.
|
# Format staged nix files.
|
||||||
exec ${nixpkgs-fmt}/bin/nixpkgs-fmt \
|
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$'
|
| ${ripgrep}/bin/rg '\.nix$'
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue