We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114987b commit e4f1d9eCopy full SHA for e4f1d9e
src/resolvers/git.cr
@@ -36,7 +36,16 @@ module Shards
36
cleanup_install_directory
37
Dir.mkdir(install_path)
38
39
- run "git archive --format=tar #{refs} | tar x -C #{escape install_path}"
+ if file_exists?(refs, SPEC_FILENAME)
40
+ run "git archive --format=tar #{refs} #{SPEC_FILENAME} | tar x -C #{escape install_path}"
41
+ end
42
+
43
+ # TODO: search for LICENSE* files
44
+ if file_exists?(refs, "LICENSE")
45
+ run "git archive --format=tar #{refs} 'LICENSE' | tar x -C #{escape install_path}"
46
47
48
+ run "git archive --format=tar --prefix= #{refs}:src/ | tar x -C #{escape install_path}"
49
end
50
51
def local_path
0 commit comments