braid 1.1.4 → 1.1.5

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: adb13d280f397cd42919d311d849056087324f1ffec5c57f7b126b82013048f9
4
- data.tar.gz: cfb5432addac3a9167f3e8f61bed948cc2651af2a84d32d3984194759fcc1ee7
3
+ metadata.gz: 820284531c81fc3d920345ddca21afa6cb6f49489aa088c2eb6b3233923069e9
4
+ data.tar.gz: ee5eb584e64c6426e77905bc1d8ac7d1622620665749546bf142c424dacf027e
5
5
  SHA512:
6
- metadata.gz: a4e725e85c4b487409575d530aa012c4cd5a3e1b90b71e14e09fd100bbdd7ee5fd3c11afde95548436df35a0286c105121953578af5cca2470c9674b68d60d59
7
- data.tar.gz: 73ac1fc248da08c36d9b3fe5e77a12bdbda4f858efe48951a697ec352ea9e29422e3f4931001b6c2f729a9a91fb4679196cc1293eb5f01ab96bb91999412cc3f
6
+ metadata.gz: 71b869dfd6f57e8d64238b7d09761415d807572cd2d2b71e8f0d0a3fb48d759af2269f0ba13a946142408981b8edb3d84c8f00cca51ed1542fcf0a785e5c38f4
7
+ data.tar.gz: fe09b15e8062fab7aa8389dddc9bae1c4f684e583bed5ac3105970fe7ad6d809b5af9583cf6c970563a8471317a78cfac505522f3402403b7d547aba087a613c
@@ -62,7 +62,7 @@ module Braid
62
62
  # hax!
63
63
  def version
64
64
  status, out, err = exec!("#{self.class.command} --version")
65
- out.sub(/^.* version/, '').strip
65
+ out.sub(/^.* version/, '').strip.sub(/ .*$/, '').strip
66
66
  end
67
67
 
68
68
  def require_version(required)
data/lib/braid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Braid
2
- VERSION = '1.1.4'.freeze
2
+ VERSION = '1.1.5'.freeze
3
3
  end
@@ -93,7 +93,7 @@ end
93
93
  # bunch of dependencies from Braid::Operations. This small amount of code
94
94
  # duplication seems like a lesser evil than sorting out all the dependencies.
95
95
  def git_require_version(required)
96
- actual = run_command('git --version').sub(/^.* version/, '').strip
96
+ actual = run_command('git --version').sub(/^.* version/, '').strip.sub(/ .*$/, '').strip
97
97
  Gem::Version.new(actual) >= Gem::Version.new(required)
98
98
  end
99
99
 
@@ -111,10 +111,13 @@ def create_git_repo_from_fixture(fixture_name, options = {})
111
111
  update_dir_from_fixture(directory, fixture_name)
112
112
 
113
113
  in_dir(git_repo) do
114
- # Avoid a warning emitted by because we use the old default default branch name
115
- run_command('git config --global init.defaultBranch master')
116
-
117
- run_command('git init')
114
+ # If we don't specify the initial branch name, Git >= 2.30 warns that the
115
+ # default of `master` is subject to change. We're still using `master` for
116
+ # now, so avoid the warning by specifying it explicitly. Git >= 2.28 honors
117
+ # init.defaultBranch, while older versions of Git ignore it and are
118
+ # hard-coded to use `master`. (Using the `--initial-branch=master` option
119
+ # would cause an error on Git < 2.28, so we don't do that.)
120
+ run_command('git -c init.defaultBranch=master init')
118
121
  run_command("git config --local user.email \"#{email}\"")
119
122
  run_command("git config --local user.name \"#{name}\"")
120
123
  run_command('git config --local commit.gpgsign false')
@@ -342,9 +342,6 @@ describe 'Pushing to a mirror' do
342
342
  # the filter until after that step. :/
343
343
  @vendor_repository_dir = create_git_repo_from_fixture('skit1_with_filter')
344
344
 
345
- # Avoid a warning emitted by because we use the old default default branch name
346
- run_command('git config --global init.defaultBranch master')
347
-
348
345
  # Configure the broken filter globally. Here, `false` is the command that
349
346
  # always exits 1.
350
347
  run_command('git config --global filter.broken.clean false')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristi Balan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-01-24 00:00:00.000000000 Z
14
+ date: 2022-03-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: main