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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52f1d923600298a1c3621c8890b973016f4fba2a
4
- data.tar.gz: e7211091342f3b9a539bfca6cdffa415d21fb467
3
+ metadata.gz: cd8fef579b829167296d2e6b50249e68aa7cc811
4
+ data.tar.gz: 1d77007e89b07d5be9a72b04bd6e16938bf920d3
5
5
  SHA512:
6
- metadata.gz: eb75a3b8715e4228940e56d368c06164cef2433bae14b17acca6ce4c891609e39680b1a46aea2c83ecabfb1784f8ac990c62b9ced127f7edee38783b5e0b7175
7
- data.tar.gz: 2463a6273e9bcec3b3333da86c0522e1319e193553eabb01dea53d1cea0834dfaf8e3a5818e1c4e294f3a29381e5c3036a37d19c9a1e8c4454d1fac5810e59e5
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
- if File.join(package.srcdir, '.git', 'lfs')
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.srcdir
12
+ working_directory: package.importdir
7
13
  end
8
14
  end
9
15
  end
@@ -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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.10.0.rc18" unless defined? Autobuild::VERSION
2
+ VERSION = "1.10.0.rc19" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
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.rc18
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-10-20 00:00:00.000000000 Z
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: