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:
commit
7175f52860
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue