overcommit 0.34.1 → 0.34.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86cc1bfaf7e0821dd1e60ef45df97899608fcdf2
|
4
|
+
data.tar.gz: 01c697905ca074ece97b021c3e00413883b93f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c3fe3d46646d86c24c4628ab9d552e2f167090deebc8b5ce0abf21828e9013e3cf4cd82f1fac349e01677b6883ec2705939da4eaacb23fe4e72efc3b9f6682
|
7
|
+
data.tar.gz: d99729195dedd3ad2a7058c95f4fb6071886a151bf153cb8e724ba0784212a9cc06e7336266ecd9a91273e69f19a96d5f31bb74640465d8b8bd497bb87bf9fcf
|
data/config/starter.yml
CHANGED
data/lib/overcommit/git_repo.rb
CHANGED
@@ -69,7 +69,7 @@ module Overcommit
|
|
69
69
|
refs = options[:refs]
|
70
70
|
subcmd = options[:subcmd] || 'diff'
|
71
71
|
|
72
|
-
`git #{subcmd} --no-ext-diff -U0 #{flags} #{refs} -- "#{file_path}"`.
|
72
|
+
`git #{subcmd} --no-color --no-ext-diff -U0 #{flags} #{refs} -- "#{file_path}"`.
|
73
73
|
scan(DIFF_HUNK_REGEX) do |start_line, lines_added|
|
74
74
|
lines_added = (lines_added || 1).to_i # When blank, one line was added
|
75
75
|
cur_line = start_line.to_i
|
@@ -52,7 +52,7 @@ module Overcommit::Hook::PreCommit
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def extract_from_git_index(file_modes)
|
55
|
-
result = execute(%w[git diff --raw --cached --], args: applicable_files)
|
55
|
+
result = execute(%w[git diff --raw --cached --no-color --], args: applicable_files)
|
56
56
|
raise 'Unable to access git index' unless result.success?
|
57
57
|
|
58
58
|
result.stdout.split("\n").each do |line|
|
@@ -50,7 +50,7 @@ module Overcommit::HookContext
|
|
50
50
|
|
51
51
|
stash_message = "Overcommit: Stash of repo state before hook run at #{Time.now}"
|
52
52
|
result = Overcommit::Utils.execute(
|
53
|
-
%w[git stash save --keep-index --quiet] + [stash_message]
|
53
|
+
%w[git -c commit.gpgsign=false stash save --keep-index --quiet] + [stash_message]
|
54
54
|
)
|
55
55
|
|
56
56
|
unless result.success?
|
data/lib/overcommit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overcommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brigade Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: childprocess
|