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 +4 -4
- data/lib/braid/operations.rb +1 -1
- data/lib/braid/version.rb +1 -1
- data/spec/integration/integration_helper.rb +8 -5
- data/spec/integration/push_spec.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 820284531c81fc3d920345ddca21afa6cb6f49489aa088c2eb6b3233923069e9
|
4
|
+
data.tar.gz: ee5eb584e64c6426e77905bc1d8ac7d1622620665749546bf142c424dacf027e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71b869dfd6f57e8d64238b7d09761415d807572cd2d2b71e8f0d0a3fb48d759af2269f0ba13a946142408981b8edb3d84c8f00cca51ed1542fcf0a785e5c38f4
|
7
|
+
data.tar.gz: fe09b15e8062fab7aa8389dddc9bae1c4f684e583bed5ac3105970fe7ad6d809b5af9583cf6c970563a8471317a78cfac505522f3402403b7d547aba087a613c
|
data/lib/braid/operations.rb
CHANGED
data/lib/braid/version.rb
CHANGED
@@ -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
|
-
#
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
+
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-
|
14
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: main
|