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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8300790e0ccabd6e3bd4002e7d6cb7470dec69a
4
- data.tar.gz: 2ab3c31f0b61acb76aa9f6cefa6a646a8935fb48
3
+ metadata.gz: daa2d5438dd2a2e2959f534bd5c10db4242e33f6
4
+ data.tar.gz: 248b1adaf97a74b3063c8a166339863f1edd3f69
5
5
  SHA512:
6
- metadata.gz: 919ebd7a6bc0edd28c29a72f1c193a3852b4d1318ac13dcd343cdb99e9df45f2b809ac7cded4ba9aa554f284c31c17578387aebd84543ed840436558139da0cf
7
- data.tar.gz: 701f5e05964311896a145e60771455e8dfea685611a8d20db05c8fb6fe45eff5b8f7bcf459224930b51e362dc917c418b7f86e12794d73cc9da91b7d0ea75578
6
+ metadata.gz: 1ff703e1846f8f4a809d68513e8094c6b4d60df7640aa8f0200420dde9699ad54ce0b7e8f8abb7ac2dee62fcbf487651c29d5a1cedef22223f45f8a207e90475
7
+ data.tar.gz: 6fabf32d8fe88839448ce2999def99dc7f2e408523b30d3bfe4c288a8c1b5f4bbd26f0e02eceff99219aa23a3493f4f47cc50e7c442d83d87c031fc84b09d2c7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.2.15
1
+ 7.2.16
@@ -57,6 +57,8 @@ module Gitlab
57
57
  #
58
58
  def find_entry_by_path(repository, root_id, path)
59
59
  root_tree = repository.lookup(root_id)
60
+ # Strip leading slashes
61
+ path.slice!(0) if path[0] == "/"
60
62
  path_arr = path.split('/')
61
63
 
62
64
  entry = root_tree.find do |entry|
@@ -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 nice_process(pid)
983
- niced_process = %W(renice -n 20 -p #{pid})
984
-
980
+ def nice(cmd)
981
+ nice_cmd = %W(nice -n 20)
985
982
  unless unsupported_platform?
986
- niced_process = %W(ionice -c 2 -n 7 -p #{pid}) + niced_process
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.15
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-08-27 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-linguist