git-duo 2.0.1 → 2.0.2

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: cd1a43aa0e8bef0a4db0f3337be1cde1bd8fdd7a
4
- data.tar.gz: 0eca19c31267b8deb28d3b26190375a7e876c4fb
3
+ metadata.gz: eb0434e12df6e437095b940a26cf3d5ed32bd590
4
+ data.tar.gz: 7d7b26077eaab3e987cc83d73a8f311bbc23d9d7
5
5
  SHA512:
6
- metadata.gz: 5648909e39ac86047114b95bffe9d369b171a47ae5b08bf15e6d888da98f50dc378ac1f595b1b88f1232a0ae0c9aecbe4cf5d419c721814bf4ac2d1f2cf07c29
7
- data.tar.gz: 598126bfa88c980005dfea55fffa2faba21f381ff41e8d523c1b9953b2ab3c0159cb2121454b6346b8f20e07d96b9edc793591929fa0feb6154c5d3b146b450a
6
+ metadata.gz: 921f32561984695249e5d1dadcff0b2dd6a48df29771463b87536bc222dd160604a76cacf32a68426a6618893b857cbe3332cfa914dce2819145b913c1c8d6b7
7
+ data.tar.gz: 35428cf7a629580a945cc4880cdf6df02d144fcb463c15966044a6081d3cd73dbc9504e6c3e5c0c616a42f53327e5560e6b06dbe015c51bd6224abdd3f847639
@@ -8,7 +8,9 @@ module Git
8
8
 
9
9
  def initialize authors, opts = {}
10
10
  @authors = authors.sort_by {|author| author.key }
11
- @wrapper = opts.fetch(:wrapper) { Git::Duo::Wrapper.new File.join(Dir.pwd, '.git') }
11
+ @wrapper = opts.fetch(:wrapper) {
12
+ Git::Duo::Wrapper.new(Git::Duo::Wrapper.top_level + '/.git')
13
+ }
12
14
  end
13
15
 
14
16
  def name
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Duo
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ module Git
4
4
  PIPE_STDOUT_TO_STDERR = '2>&1'
5
5
 
6
6
  def self.top_level
7
- directory = `git rev-parse --show-toplevel`.strip
7
+ directory = `git rev-parse --show-toplevel #{PIPE_STDOUT_TO_STDERR}`.strip
8
8
  raise NotAGitRepository unless $?.exitstatus.zero?
9
9
  directory
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teo Ljungberg