-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Since I needed this myself, here is a gitignore filter that includes the .git directory itself (which is often needed for running git commands):
{ lib, gitignoreFilter }: path:
let
ignoreFilter = gitignoreFilter path;
dotGit = toString path + "/.git";
in lib.cleanSourceWith {
src = path;
filter = path: type: lib.hasPrefix dotGit path || ignoreFilter path type;
}It might be worth adding a filter with this functionality to this library
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels