1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Merge pull request #182 from wildsebastian/fix_commitIdFromGitRepo_call

Remove trailing slash from path in commitIdFromGitRepo call
This commit is contained in:
Daiderd Jordan 2020-01-15 11:07:12 +01:00 committed by GitHub
commit 7175f52860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {