gitlab_git 7.1.9 → 7.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gitlab_git/repository.rb +10 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1a60ba36fe426b15352fa6b00d21c7d51267ff0
4
- data.tar.gz: 340cf0a4dd103cc15b0cd78a32116ffb7bf22419
3
+ metadata.gz: ae4ed8ebb80e88d0ef9e9551970f90ba35f0eb2a
4
+ data.tar.gz: 6232b1246b28f068487b3b60074abff05cbf6158
5
5
  SHA512:
6
- metadata.gz: 6fac11c60f8d1fd2ef0cd61a9b320f56aaed593766353c31e7c3529d6ac65f8d18100d5b8ce9be8038b0dbcd2386a2de6bd1784550c36e721c0fdcc281d32060
7
- data.tar.gz: d32bb7ab2116124f4e51cf4809672a1d746b18fb3803394698ba9cf7e5ba042ba84623bcaf1194b2624d433713e595314c92621e7d700232667a218eedef7fc5
6
+ metadata.gz: 109721910a08ebcbb097d054c265a15e1c4df517e96f8851f56355ffb907666e1cc383488009e55729261e1a0906aa2f7224fe79cebd538eb99ea549b981135d
7
+ data.tar.gz: de243a5b5a7c9eb4f6790de86730484505116c37c4ba65c88677534544b0728c86bd0b12ce6a0d013fb85df42132edf6daec7549cc5dd7b1f2b2f07ad108f84e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.1.9
1
+ 7.1.10
@@ -766,9 +766,12 @@ module Gitlab
766
766
  raise InvalidBlobName.new("Invalid blob name: #{blob_name}")
767
767
  end
768
768
 
769
- if blob_entry[:type] == :commit
769
+ case blob_entry[:type]
770
+ when :commit
770
771
  blob_entry[:oid]
771
- else
772
+ when :tree
773
+ raise InvalidBlobName.new("#{blob_name} is a tree, not a blob")
774
+ when :blob
772
775
  rugged.lookup(blob_entry[:oid]).content
773
776
  end
774
777
  end
@@ -962,13 +965,17 @@ module Gitlab
962
965
  def nice_process(pid)
963
966
  niced_process = %W(renice -n 20 -p #{pid})
964
967
 
965
- unless RUBY_PLATFORM.include?('darwin') || RUBY_PLATFORM.include?('freebsd')
968
+ unless unsupported_platform?
966
969
  niced_process = %W(ionice -c 2 -n 7 -p #{pid}) + niced_process
967
970
  end
968
971
 
969
972
  niced_process
970
973
  end
971
974
 
975
+ def unsupported_platform?
976
+ %w( darwin freebsd solaris ).map{ |platform| RUBY_PLATFORM.include?(platform) }.any?
977
+ end
978
+
972
979
  # Returns true if the index entry has the special file mode that denotes
973
980
  # a submodule.
974
981
  def submodule?(index_entry)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.9
4
+ version: 7.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets