diff options
author | Artturi <Artturin@artturin.com> | 2022-11-17 15:18:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 15:18:52 +0200 |
commit | e3bd5d17b2e59cee9df28ab1ed68716ff3e0dfd6 (patch) | |
tree | ca4f4d2d5257813fa45744495efb904d6337a765 /lib/trivial.nix | |
parent | f15d096a8e89edaf1b0a572e6ed58095e8c593d6 (diff) | |
parent | ec8f8f69bd57b9dfd24ed56ef8f3c53c9ee5f453 (diff) |
Merge pull request #199812 from Artturin/removeusagesoftostringonpath1
lib/sources: remove 2 usages of toString on a path which will be read using fileContents
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r-- | lib/trivial.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix index 0e02660d6b35a..142ed32c9e5a6 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -213,8 +213,8 @@ rec { # Default value to return if revision can not be determined default: let - revisionFile = "${toString ./..}/.git-revision"; - gitRepo = "${toString ./..}/.git"; + revisionFile = ./.. + "/.git-revision"; + gitRepo = ./.. + "/.git"; in if lib.pathIsGitRepo gitRepo then lib.commitIdFromGitRepo gitRepo else if lib.pathExists revisionFile then lib.fileContents revisionFile |