Skip to content

Commit

Permalink
Try #1469:
Browse files Browse the repository at this point in the history
  • Loading branch information
iohk-bors[bot] committed May 13, 2022
2 parents aa6d7a8 + 74c04ff commit 30046ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/clean-git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ then
first_line = head git_content;
prefix = "gitdir: ";
ok = length git_content == 1 && lib.hasPrefix prefix first_line;
raw_path = remove_prefix prefix first_line;
in
if ok
then /. + remove_prefix prefix first_line
then
if lib.hasPrefix "/" raw_path
then /. + raw_path
else /. + builtins.toPath (origSrcSubDir + "/" + raw_path)
else abort "gitSource.nix: Cannot parse ${origSrcSubDir + "/.git"}";
}));

Expand Down

0 comments on commit 30046ff

Please sign in to comment.