diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/system/version.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/version.nix b/modules/system/version.nix index c967084..46291d6 100644 --- a/modules/system/version.nix +++ b/modules/system/version.nix @@ -8,8 +8,8 @@ let defaultStateVersion = options.system.stateVersion.default; parseGit = path: - if pathExists "${path}/.git/" then rec { - rev = commitIdFromGitRepo "${path}/.git/"; + if pathExists "${path}/.git" then rec { + rev = commitIdFromGitRepo "${path}/.git"; shortRev = substring 0 7 rev; } else if pathExists "${path}/.git-revision" then rec { |
