summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorDanilo Sousa <dsgoncalves@uoldiveo.com>2016-07-20 06:57:35 -0300
committerDanilo Sousa <dsgoncalves@uoldiveo.com>2016-07-20 06:57:35 -0300
commit3310af0e9017eb7ea16ae19a98929ec5541890bf (patch)
tree742360cbf0faadf6515a5d01d40ed60c0e443ab6 /lib/oxidized
parentd77e043a724698c3687665f9d00e8c49a520c83a (diff)
fix the Node#repo path resolution
this correctly respects the repo declaration as Hash or String
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/node.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb
index cc1e406..1a08dff 100644
--- a/lib/oxidized/node.rb
+++ b/lib/oxidized/node.rb
@@ -176,8 +176,12 @@ module Oxidized
def resolve_repo
remote_repo = Oxidized.config.output.git.repo
- if Oxidized.config.output.git.single_repo? || @group.nil? || remote_repo.is_a?(String)
- remote_repo
+ if remote_repo.is_a?(::String)
+ if Oxidized.config.output.git.single_repo? || @group.nil?
+ remote_repo
+ else
+ File.join(File.dirname(remote_repo), @group + '.git')
+ end
else
remote_repo[@group]
end