Skip to content

Commit 642b869

Browse files
author
Shay Bergmann
committed
Use lib.pathIsGitRepo
instead of just checking for the existence of `.git`. It covers more cases that way.
1 parent 992196d commit 642b869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/pkgs/mantis/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
mkSrc = src:
44
let
5-
isGit = builtins.pathExists (src + "/.git");
5+
isGit = lib.pathIsGitRepo src;
66
repo = builtins.fetchGit { url = src; submodules = true; };
77
dirty = repo.revCount == 0;
88
filterSrc = src:

0 commit comments

Comments
 (0)