From 3310af0e9017eb7ea16ae19a98929ec5541890bf Mon Sep 17 00:00:00 2001 From: Danilo Sousa Date: Wed, 20 Jul 2016 06:57:35 -0300 Subject: fix the Node#repo path resolution this correctly respects the repo declaration as Hash or String --- lib/oxidized/node.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/oxidized/node.rb') 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 -- cgit v1.2.1