git 1.10.2 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of git might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96afd3adb091a3428a45ad172cfc980f64af32d5a809fc0f26e45a275811e04f
4
- data.tar.gz: be9cc2d9f88513c178f064f2374d7c28ba47eeffa5d93486edacf39df5d26b63
3
+ metadata.gz: 564087b850fc095e75b62f5fd231d27e7dc145b7839c795d8c84355cb0df0c67
4
+ data.tar.gz: 0d377c66918e25e2a52f1155db445657452be662553756c3e08cb5d66db29d2d
5
5
  SHA512:
6
- metadata.gz: 21fb082ab5d96163049b27983f2a923573166088876300f85a34e8b5476559b5ec12d9c4a84a4afaff9ec0afdd2054f75099fda98b9913305a2dac18a2f6a776
7
- data.tar.gz: 0ee7d7a9ac8665b3ac94fd6471de876f0e9cade17e3e58b4918c6de397d7c4a1d4c35b5695d0040cbbc0b739a9318550f4e08e5b16c51c7f9d3d6f6c7ef587a6
6
+ metadata.gz: 0e6bc7af5d099a33e79afabc655d62faa5e7ce7bcface1843f35a50fbafe2d02a26065b56d5cf2ec26fd7602363a232543ae8a5584952004d8253771a2753fdc
7
+ data.tar.gz: 732a2e8bbb690279caccc65dcedce95cb378d3554886574fbd71985b09dd77f74d3c82e5f0a71d5af19bddf943dd41b6b5a86be2e847205a26ff1db0ecaa2f1a
data/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@
5
5
 
6
6
  # Change Log
7
7
 
8
+ ## v1.11.0
9
+
10
+ * 292087e Supress unneeded test output (#570)
11
+ * 19dfe5e Add support for fetch options "--force/-f" and "--prune-tags/-P". (#563)
12
+ * 018d919 Fix bug when grepping lines that contain numbers surrounded by colons (#566)
13
+ * c04d16e remove from maintainer (#567)
14
+ * 291ca09 Address command line injection in Git::Lib#fetch
15
+ * 521b8e7 Release v1.10.2 (#561)
16
+
17
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0
18
+
8
19
  ## v1.10.2
9
20
 
10
21
  See https://github.com/ruby-git/ruby-git/releases/tag/v1.10.2
data/MAINTAINERS.md CHANGED
@@ -10,5 +10,4 @@ When making changes in this repository, one of the maintainers below must review
10
10
  ### Maintainers
11
11
 
12
12
  * [Per Lundberg](https://github.com/perlun)
13
- * [Vern Burton](https://github.com/tarcinil)
14
13
  * [James Couball](https://github.com/jcouball)
data/lib/git/lib.rb CHANGED
@@ -419,7 +419,7 @@ module Git
419
419
 
420
420
  hsh = {}
421
421
  command_lines('grep', grep_opts).each do |line|
422
- if m = /(.*)\:(\d+)\:(.*)/.match(line)
422
+ if m = /(.*?)\:(\d+)\:(.*)/.match(line)
423
423
  hsh[m[1]] ||= []
424
424
  hsh[m[1]] << [m[2].to_i, m[3]]
425
425
  end
@@ -875,14 +875,17 @@ module Git
875
875
  command('tag', arr_opts)
876
876
  end
877
877
 
878
-
879
878
  def fetch(remote, opts)
880
- arr_opts = [remote]
881
- arr_opts << opts[:ref] if opts[:ref]
879
+ arr_opts = []
882
880
  arr_opts << '--tags' if opts[:t] || opts[:tags]
883
881
  arr_opts << '--prune' if opts[:p] || opts[:prune]
882
+ arr_opts << '--prune-tags' if opts[:P] || opts[:'prune-tags']
883
+ arr_opts << '--force' if opts[:f] || opts[:force]
884
884
  arr_opts << '--unshallow' if opts[:unshallow]
885
885
  arr_opts << '--depth' << opts[:depth] if opts[:depth]
886
+ arr_opts << '--'
887
+ arr_opts << remote
888
+ arr_opts << opts[:ref] if opts[:ref]
886
889
 
887
890
  command('fetch', arr_opts)
888
891
  end
data/lib/git/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  # The current gem version
3
3
  # @return [String] the current gem version.
4
- VERSION='1.10.2'
4
+ VERSION='1.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rchardet