gitlab_git 10.4.4 → 10.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/compare.rb +4 -1
- data/lib/gitlab_git/repository.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 659c37feceb510d64d5999ef89652c7d49248bd3
|
|
4
|
+
data.tar.gz: 6445e200d34d60898efa5ecc5f89e81894c7634b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81e7070a409ceb25c1fba13092e7969fe504a301a5bc6524578bc75cfaeb5490e43a8be4adb4454744a33137350b702a6ea5519f163d9024172ccc4cb8f1fa36
|
|
7
|
+
data.tar.gz: 7d3ed29ffcf88e9232322f89c53e6d3d16d10cf60b7ede1c6fec227dd5509b0844d987a0d1452af6bc09f988c0c04c096fbb0adc5ed3f8a04fb2905cc9b5cb0b
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.4.
|
|
1
|
+
10.4.5
|
data/lib/gitlab_git/compare.rb
CHANGED
|
@@ -6,7 +6,10 @@ module Gitlab
|
|
|
6
6
|
def initialize(repository, base, head)
|
|
7
7
|
@repository = repository
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
unless base && head
|
|
10
|
+
@commits = []
|
|
11
|
+
return
|
|
12
|
+
end
|
|
10
13
|
|
|
11
14
|
@base = Gitlab::Git::Commit.find(repository, base.try(:strip))
|
|
12
15
|
@head = Gitlab::Git::Commit.find(repository, head.try(:strip))
|
|
@@ -952,7 +952,10 @@ module Gitlab
|
|
|
952
952
|
Dir.mkdir(info_dir_path) unless File.directory?(info_dir_path)
|
|
953
953
|
|
|
954
954
|
# Write the contents of the .gitattributes file to info/attributes
|
|
955
|
-
|
|
955
|
+
# Use binary mode to prevent Rails from converting ASCII-8BIT to UTF-8
|
|
956
|
+
File.open(info_attributes_path, "wb") do |file|
|
|
957
|
+
file.write(gitattributes_content)
|
|
958
|
+
end
|
|
956
959
|
end
|
|
957
960
|
|
|
958
961
|
# Checks if the blob should be diffable according to its attributes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_git
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 10.4.
|
|
4
|
+
version: 10.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitriy Zaporozhets
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: github-linguist
|