gitlab_git 10.4.4 → 10.4.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
  SHA1:
3
- metadata.gz: addeba465f50470a6fb488b90e4c10fadfe98f83
4
- data.tar.gz: 38e00284fc964eeb61ab751216b0ba67ae1d5e32
3
+ metadata.gz: 659c37feceb510d64d5999ef89652c7d49248bd3
4
+ data.tar.gz: 6445e200d34d60898efa5ecc5f89e81894c7634b
5
5
  SHA512:
6
- metadata.gz: 95b6aa7accdb06990e8d5b0d821ae564c53d5ed616f76da1170c0864e14d92cb44d1f7e22b9d118dbf034bc624a58fcc26d531a0fde16da8959ae7781a55d298
7
- data.tar.gz: 9479e6617625f25e9b8a35cebf97e4f22d00ba1c58a3c8603b4b2dcfc6ec70b5267a4dc62df3480e2b24144e5621c8f636bc54a1eccce88b8f2871e1638e8ae1
6
+ metadata.gz: 81e7070a409ceb25c1fba13092e7969fe504a301a5bc6524578bc75cfaeb5490e43a8be4adb4454744a33137350b702a6ea5519f163d9024172ccc4cb8f1fa36
7
+ data.tar.gz: 7d3ed29ffcf88e9232322f89c53e6d3d16d10cf60b7ede1c6fec227dd5509b0844d987a0d1452af6bc09f988c0c04c096fbb0adc5ed3f8a04fb2905cc9b5cb0b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.4.4
1
+ 10.4.5
@@ -6,7 +6,10 @@ module Gitlab
6
6
  def initialize(repository, base, head)
7
7
  @repository = repository
8
8
 
9
- return unless base && head
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
- File.write(info_attributes_path, gitattributes_content)
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
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-04 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist