gitlab_git 2.1.0 → 2.1.1

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: 5f61306b02ce00f09ae58472e5d486e4ed676388
4
- data.tar.gz: 823cea793f9f714ea3b2a9459a7119ad5d80ad40
3
+ metadata.gz: 5ebbcb7c820cc43073ff11a89608553f4bb7abac
4
+ data.tar.gz: f060d02e573af1d86065507f29a0dc04bcc0f641
5
5
  SHA512:
6
- metadata.gz: f42e53e6b8662cd00f839539348033ca9437cf15b2e3b144542502a38f3aeda9b42d7074b853604a3b4201999e6440e1859e46c890491bdafef044e6e8214a5c
7
- data.tar.gz: 1a17eb07cc61c26c005940c308d77b3ed2987e82c4b0109727e7b7576d39d5dce15247cb183ce414e19f6d3966939ea48dba6b43d08b501702b2288806144518
6
+ metadata.gz: 928b0db6c557babb1a447e1a8ac551751b33ac02effa3b220b4ee37572019194fb6624ade26b0aba4e6a77c982a4653b91cfa466fe63aaf193d45f7cfeba5ded
7
+ data.tar.gz: 9e133707553e092b676af9f46b276a78b818750bdd0086482d1e7682128aeb9c8f6ff127ec24cc8f9f8de6de7804610906db70c33e036c219319cdc65d2d51bd
@@ -13,7 +13,7 @@ module Gitlab
13
13
  log = nil
14
14
  Grit::Git.with_timeout(30) do
15
15
  # Limit log to 6k commits to avoid timeout for huge projects
16
- args = ['-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges']
16
+ args = ['-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges', '--diff-filter=ACDM']
17
17
  log = repo.git.run(nil, 'log', nil, {}, args)
18
18
  end
19
19
 
@@ -15,9 +15,10 @@ module Gitlab
15
15
  entry[:date] = slice[2]
16
16
 
17
17
  if slice[4]
18
- changes = slice[4].split(",")
19
- entry[:additions] = changes[1].to_i unless changes[1].nil?
20
- entry[:deletions] = changes[2].to_i unless changes[2].nil?
18
+ changes = slice[4]
19
+
20
+ entry[:additions] = $1.to_i if changes =~ /(\d+) insertion/
21
+ entry[:deletions] = $1.to_i if changes =~ /(\d+) deletion/
21
22
  end
22
23
 
23
24
  collection.push(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: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets