gitlab_git 7.2.15 → 7.2.16
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/blob.rb +2 -0
- data/lib/gitlab_git/repository.rb +6 -10
- 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: daa2d5438dd2a2e2959f534bd5c10db4242e33f6
|
4
|
+
data.tar.gz: 248b1adaf97a74b3063c8a166339863f1edd3f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff703e1846f8f4a809d68513e8094c6b4d60df7640aa8f0200420dde9699ad54ce0b7e8f8abb7ac2dee62fcbf487651c29d5a1cedef22223f45f8a207e90475
|
7
|
+
data.tar.gz: 6fabf32d8fe88839448ce2999def99dc7f2e408523b30d3bfe4c288a8c1b5f4bbd26f0e02eceff99219aa23a3493f4f47cc50e7c442d83d87c031fc84b09d2c7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.2.
|
1
|
+
7.2.16
|
data/lib/gitlab_git/blob.rb
CHANGED
@@ -957,16 +957,14 @@ module Gitlab
|
|
957
957
|
|
958
958
|
# Get the compression process ready to accept data from the read end
|
959
959
|
# of the pipe
|
960
|
-
compress_pid = spawn(*compress_cmd, in: pipe_rd, out: file)
|
961
|
-
# Set the lowest priority for the compressing process
|
962
|
-
popen(nice_process(compress_pid), path)
|
960
|
+
compress_pid = spawn(*nice(compress_cmd), in: pipe_rd, out: file)
|
963
961
|
# The read end belongs to the compression process now; we should
|
964
962
|
# close our file descriptor for it.
|
965
963
|
pipe_rd.close
|
966
964
|
|
967
965
|
# Start 'git archive' and tell it to write into the write end of the
|
968
966
|
# pipe.
|
969
|
-
git_archive_pid = spawn(*git_archive_cmd, out: pipe_wr)
|
967
|
+
git_archive_pid = spawn(*nice(git_archive_cmd), out: pipe_wr)
|
970
968
|
# The write end belongs to 'git archive' now; close it.
|
971
969
|
pipe_wr.close
|
972
970
|
|
@@ -979,14 +977,12 @@ module Gitlab
|
|
979
977
|
end
|
980
978
|
end
|
981
979
|
|
982
|
-
def
|
983
|
-
|
984
|
-
|
980
|
+
def nice(cmd)
|
981
|
+
nice_cmd = %W(nice -n 20)
|
985
982
|
unless unsupported_platform?
|
986
|
-
|
983
|
+
nice_cmd += %W(ionice -c 2 -n 7)
|
987
984
|
end
|
988
|
-
|
989
|
-
niced_process
|
985
|
+
nice_cmd + cmd
|
990
986
|
end
|
991
987
|
|
992
988
|
def unsupported_platform?
|
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: 7.2.
|
4
|
+
version: 7.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Zaporozhets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab-linguist
|