autobuild 1.22.0 → 1.22.1

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
  SHA256:
3
- metadata.gz: 4bf4fb952c18b27c30e09e50c005f4e07e475c4d0c21c2cac3c81e4e62dc41a0
4
- data.tar.gz: dbc32874e7cdf92e6dff9b18718a8922c6d602abe45701ee4dda17fccd04e684
3
+ metadata.gz: 48e8645a039ab9b7fa950f3264bc9e15a53901a82c34fef9a32e008f123b275e
4
+ data.tar.gz: e6cfbaba2cf060c25c8bced04d8577c20275d2aabbdc0aac123ed1b43a9df4a7
5
5
  SHA512:
6
- metadata.gz: 0d9408d8aa15779a19ceaae45feafb53cea942aef147becce39835abebf873717c0f9d4d9ed04f7a47052e31120b4c80ec1b480c002ceb4d40458bd0881f1bde
7
- data.tar.gz: 8e84128190fcd911790ff20803d1965f955762affa1979bee79188dcff64a8799c4f4267d86985842008103a835004d7921794717c141e65fc97f6c8d46c638d
6
+ metadata.gz: 490828e178d20f24bc84d819cf9ac6fb3e6880cf5b9eb938fef540e18e8023008cd467d26fac61b46f531bb7abeadaa1822fd257437a7eb36d8c23ec8dc10906
7
+ data.tar.gz: e7eb1e3bc9bfb1f59852766113cfdb981331c595a78c9ef2f7bc530a9cf3594a64f8775b498c27f9ac534296e12393011e172c79129d7abbca69cae7581f6525
@@ -300,8 +300,10 @@ module Autobuild
300
300
  #
301
301
  # @param [Package] package
302
302
  def try_resolve_remote_head_from_local(package)
303
- ls_local_string = run_git(package, 'symbolic-ref',
304
- "refs/remotes/#{@remote_name}/HEAD").first.strip
303
+ ls_local_string = run_git_bare(
304
+ package, 'symbolic-ref',
305
+ "refs/remotes/#{@remote_name}/HEAD"
306
+ ).first.strip
305
307
  local_remote_head = ls_local_string.match("refs/remotes/#{@remote_name}/(.*)")
306
308
  local_remote_head ? local_remote_head[1] : nil
307
309
  rescue Autobuild::SubcommandFailed # rubocop:disable Lint/SuppressedException
@@ -539,8 +541,11 @@ module Autobuild
539
541
  # @api private
540
542
  #
541
543
  # Set a remote up in the repositorie's configuration
542
- def setup_remote(package, remote_name, repository, push_to = repository)
543
- resolve_all_branches(package, only_local: true) unless has_all_branches?
544
+ def setup_remote(
545
+ package, remote_name, repository, push_to = repository,
546
+ only_local: true
547
+ )
548
+ resolve_all_branches(package, only_local: only_local) unless has_all_branches?
544
549
 
545
550
  run_git_bare(package, 'config', '--replace-all',
546
551
  "remote.#{remote_name}.url", repository)
@@ -576,9 +581,9 @@ module Autobuild
576
581
  # @api private
577
582
  #
578
583
  # Updates the git repository's configuration for the target remote
579
- def update_remotes_configuration(package)
584
+ def update_remotes_configuration(package, only_local: true)
580
585
  each_configured_remote do |*args|
581
- setup_remote(package, *args)
586
+ setup_remote(package, *args, only_local: only_local)
582
587
  end
583
588
 
584
589
  if local_branch
@@ -146,7 +146,7 @@ module Autobuild
146
146
  FileUtils.rm_f configurestamp
147
147
  end
148
148
 
149
- def import(options = Hash.new)
149
+ def import(**options)
150
150
  # We force a regen after the first checkout. The issue is that
151
151
  # autotools is less robust than it should, and very often it is
152
152
  # better to generate the build system for the system on which we
@@ -1,3 +1,3 @@
1
1
  module Autobuild
2
- VERSION = "1.22.0".freeze unless defined? Autobuild::VERSION
2
+ VERSION = "1.22.1".freeze unless defined? Autobuild::VERSION
3
3
  end
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.22.0
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby