autobuild 1.10.0.rc18 → 1.10.0.rc19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autobuild/import/git-lfs.rb +9 -3
- data/lib/autobuild/import/git.rb +7 -0
- data/lib/autobuild/importer.rb +0 -3
- data/lib/autobuild/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8fef579b829167296d2e6b50249e68aa7cc811
|
4
|
+
data.tar.gz: 1d77007e89b07d5be9a72b04bd6e16938bf920d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c2ef54fca05b19d03a2a9e2f4e880de83d51767645fcf334a507746b61042ebb9b6d79224a8e19e4b8b1dfb31e00d1b61c29e9203e46d672634aff70eed364
|
7
|
+
data.tar.gz: e4278ec9b00fe793a23aea395423cdcf0b1c6a538eb91183b05f6719de186532ce89f3bdaa03c025cdba6c520080013017c3ceb835756c6a6888083e96becf73
|
@@ -1,9 +1,15 @@
|
|
1
|
+
# Disable git-lfs at checkout time, we run install --local and pull later
|
2
|
+
Autobuild::Git.default_config['filter.lfs.smudge'] = ''
|
3
|
+
Autobuild::Git.default_config['filter.lfs.required'] = 'false'
|
4
|
+
|
1
5
|
module Autobuild
|
2
6
|
Git.add_post_hook do |importer, package|
|
3
|
-
|
4
|
-
|
7
|
+
lfs_dir = File.join(package.srcdir, '.git', 'lfs')
|
8
|
+
if File.directory?(lfs_dir) && importer.options[:lfs] != false
|
9
|
+
package.run 'import', Autobuild.tool(:git), 'lfs', 'install', '--local', '--skip-smudge',
|
10
|
+
working_directory: package.importdir
|
5
11
|
package.run 'import', Autobuild.tool(:git), 'lfs', 'pull', importer.remote_name,
|
6
|
-
working_directory: package.
|
12
|
+
working_directory: package.importdir
|
7
13
|
end
|
8
14
|
end
|
9
15
|
end
|
data/lib/autobuild/import/git.rb
CHANGED
@@ -33,6 +33,10 @@ def default_alternates
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
def self.default_config
|
37
|
+
@default_config ||= Hash.new
|
38
|
+
end
|
39
|
+
|
36
40
|
self.default_alternates = nil
|
37
41
|
|
38
42
|
# Returns the git version as a string
|
@@ -1042,6 +1046,9 @@ def checkout(package, options = Hash.new)
|
|
1042
1046
|
each_alternate_path(package) do |path|
|
1043
1047
|
clone_options << '--reference' << path
|
1044
1048
|
end
|
1049
|
+
self.class.default_config.each do |key, value|
|
1050
|
+
clone_options << "--config=#{key}=#{value}"
|
1051
|
+
end
|
1045
1052
|
package.run(:import,
|
1046
1053
|
Autobuild.tool('git'), 'clone', '-o', remote_name, *clone_options, repository, package.importdir, retry: true)
|
1047
1054
|
|
data/lib/autobuild/importer.rb
CHANGED
@@ -262,9 +262,6 @@ def self.each_post_hook(&hook)
|
|
262
262
|
#
|
263
263
|
# Call the post-import hooks added with {#add_post_hook}
|
264
264
|
def execute_post_hooks(package)
|
265
|
-
self.class.each_post_hook do |hook|
|
266
|
-
hook.call(self, package)
|
267
|
-
end
|
268
265
|
each_post_hook.each do |block|
|
269
266
|
block.call(self, package)
|
270
267
|
end
|
data/lib/autobuild/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autobuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.0.
|
4
|
+
version: 1.10.0.rc19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -229,4 +229,3 @@ signing_key:
|
|
229
229
|
specification_version: 4
|
230
230
|
summary: Library to handle build systems and import mechanisms
|
231
231
|
test_files: []
|
232
|
-
has_rdoc:
|