gitlab_git 7.1.9 → 7.1.10
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/repository.rb +10 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae4ed8ebb80e88d0ef9e9551970f90ba35f0eb2a
|
4
|
+
data.tar.gz: 6232b1246b28f068487b3b60074abff05cbf6158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 109721910a08ebcbb097d054c265a15e1c4df517e96f8851f56355ffb907666e1cc383488009e55729261e1a0906aa2f7224fe79cebd538eb99ea549b981135d
|
7
|
+
data.tar.gz: de243a5b5a7c9eb4f6790de86730484505116c37c4ba65c88677534544b0728c86bd0b12ce6a0d013fb85df42132edf6daec7549cc5dd7b1f2b2f07ad108f84e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.1.
|
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
|
-
|
769
|
+
case blob_entry[:type]
|
770
|
+
when :commit
|
770
771
|
blob_entry[:oid]
|
771
|
-
|
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
|
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)
|