git 1.2.7 → 1.2.8
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 +4 -4
- data/lib/git/base.rb +2 -2
- data/lib/git/lib.rb +7 -3
- data/lib/git/path.rb +1 -1
- data/lib/git/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaf7dd4bc18409515ebafd5cbb88ae6b09b0cedd
|
4
|
+
data.tar.gz: e1514ed938b01b97f2bd47a85fec625918753c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f4b39bd857530e4d47d16489d6749e9ab358097c06713351c94fce99b5254b4ba8da40cb5e82c167019057160a2afe6833cdff64914adfc38ed6b3b4ab5cdbf
|
7
|
+
data.tar.gz: 7726b6ac3a385d4904969a52c0c3718945fb47badfea35a80a7bb62130bd58f3a1bf763de1c9e16e4e063fc15ab4f113006f82154ab00832fcf289253d3f585a
|
data/lib/git/base.rb
CHANGED
@@ -446,13 +446,13 @@ module Git
|
|
446
446
|
end
|
447
447
|
|
448
448
|
def apply(file)
|
449
|
-
if File.
|
449
|
+
if File.exist?(file)
|
450
450
|
self.lib.apply(file)
|
451
451
|
end
|
452
452
|
end
|
453
453
|
|
454
454
|
def apply_mail(file)
|
455
|
-
self.lib.apply_mail(file) if File.
|
455
|
+
self.lib.apply_mail(file) if File.exist?(file)
|
456
456
|
end
|
457
457
|
|
458
458
|
## LOWER LEVEL INDEX OPERATIONS ##
|
data/lib/git/lib.rb
CHANGED
@@ -98,7 +98,7 @@ module Git
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def revparse(string)
|
101
|
-
return string if string =~
|
101
|
+
return string if string =~ /^[A-Fa-f0-9]{40}$/ # passing in a sha - just no-op it
|
102
102
|
rev = ['head', 'remotes', 'tags'].map do |d|
|
103
103
|
File.join(@git_dir, 'refs', d, string)
|
104
104
|
end.find do |path|
|
@@ -632,7 +632,7 @@ module Git
|
|
632
632
|
|
633
633
|
def tag_sha(tag_name)
|
634
634
|
head = File.join(@git_dir, 'refs', 'tags', tag_name)
|
635
|
-
return File.read(head).chomp if File.
|
635
|
+
return File.read(head).chomp if File.exist?(head)
|
636
636
|
|
637
637
|
command('show-ref', ['--tags', '-s', tag_name])
|
638
638
|
end
|
@@ -829,7 +829,11 @@ module Git
|
|
829
829
|
end
|
830
830
|
|
831
831
|
def escape(s)
|
832
|
-
"'#{s && s.to_s.gsub('\'','\'"\'"\'')}'"
|
832
|
+
return "'#{s && s.to_s.gsub('\'','\'"\'"\'')}'" if RUBY_PLATFORM !~ /mingw|mswin/
|
833
|
+
|
834
|
+
# Keeping the old escape format for windows users
|
835
|
+
escaped = s.to_s.gsub('\'', '\'\\\'\'')
|
836
|
+
return %Q{"#{escaped}"}
|
833
837
|
end
|
834
838
|
|
835
839
|
end
|
data/lib/git/path.rb
CHANGED
data/lib/git/version.rb
CHANGED
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.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
102
102
|
- git 1.6.0.0, or greater
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.4.1
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Ruby/Git is a Ruby library that can be used to create, read and manipulate
|