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: e37c45497df46c477e3b21a4111f70f868fa11c3
4
- data.tar.gz: 23e271c3acfd366933ad085a684c429ec2d2e7a6
3
+ metadata.gz: 86cc1bfaf7e0821dd1e60ef45df97899608fcdf2
4
+ data.tar.gz: 01c697905ca074ece97b021c3e00413883b93f87
5
5
  SHA512:
6
- metadata.gz: e33e92af91a21ba17b0667ff1fd5c48813051a982c7dcb0acfe1117c815df9ee70b567d22cf11e13a8872d50581e6c9a2663a5dc207b524fe997eb80d00a1895
7
- data.tar.gz: b39235b068be5fcfb521a25913eb0fe8abcb7efe672d6584db5a6abcbd2150913d37536b99276a19d1eba47e8f98af7d305cc759a1b9291e66bab142d711ed9b
6
+ metadata.gz: a8c3fe3d46646d86c24c4628ab9d552e2f167090deebc8b5ce0abf21828e9013e3cf4cd82f1fac349e01677b6883ec2705939da4eaacb23fe4e72efc3b9f6682
7
+ data.tar.gz: d99729195dedd3ad2a7058c95f4fb6071886a151bf153cb8e724ba0784212a9cc06e7336266ecd9a91273e69f19a96d5f31bb74640465d8b8bd497bb87bf9fcf
data/config/starter.yml CHANGED
@@ -21,6 +21,7 @@
21
21
  # on_warn: fail # Treat all warnings as failures
22
22
  #
23
23
  # TrailingWhitespace:
24
+ # enabled: true
24
25
  # exclude:
25
26
  # - '**/db/structure.sql' # Ignore trailing whitespace in generated files
26
27
  #
@@ -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?
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Overcommit
5
- VERSION = '0.34.1'.freeze
5
+ VERSION = '0.34.2'.freeze
6
6
  end
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.1
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-16 00:00:00.000000000 Z
12
+ date: 2016-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: childprocess