git-autobisect 0.3.0 → 0.3.1

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.
@@ -12,7 +12,13 @@ module Git
12
12
  return 1
13
13
  end
14
14
 
15
- command = "(bundle check || (test -f vendor/cache && bundle --local --quiet) || bundle --quiet) && (#{command})" if File.exist?("Gemfile")
15
+ # make sure bundle is fresh before each run
16
+ if File.exist?("Gemfile")
17
+ command = "(bundle check || (test -f vendor/cache && bundle --local --quiet) || bundle --quiet) && (#{command})"
18
+ end
19
+
20
+ # reset changes but keep the exit status
21
+ command += "; export X=$? ; git reset --hard ; exit $X"
16
22
 
17
23
  run_command(command, options) || 0
18
24
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Autobisect
3
- VERSION = Version = "0.3.0"
3
+ VERSION = Version = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-autobisect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-03 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: michael@grosser.it
@@ -36,7 +36,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
36
36
  version: '0'
37
37
  segments:
38
38
  - 0
39
- hash: -4176001779097613862
39
+ hash: 3606334958800151153
40
40
  required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  version: '0'
46
46
  segments:
47
47
  - 0
48
- hash: -4176001779097613862
48
+ hash: 3606334958800151153
49
49
  requirements: []
50
50
  rubyforge_project:
51
51
  rubygems_version: 1.8.25