Skip to content

Commit

Permalink
prolog_pack: only check for git dir if git(false) is not in options
Browse files Browse the repository at this point in the history
  • Loading branch information
matko authored and JanWielemaker committed Aug 22, 2024
1 parent b541f63 commit 068632d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/prolog_pack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,8 @@
link_file(RelPath, PackDir, symbolic),
assertion(same_file(Source, PackDir))
)
; is_git_directory(Source)
; \+ option(git(false), Options),
is_git_directory(Source)
-> remove_existing_pack(PackDir, Options),
run_process(path(git), [clone, Source, PackDir], [])
; prepare_pack_dir(PackDir, Options),
Expand Down

0 comments on commit 068632d

Please sign in to comment.