summaryrefslogtreecommitdiff
path: root/lib/oxidized/node.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-07-22 13:18:14 +0200
committerGitHub <noreply@github.com>2016-07-22 13:18:14 +0200
commitdd6f5df411a3ba0e9158d6c1fc5293aa53c47a29 (patch)
treea3ea3f5c90449c239ee033f71232b1f1f85fe0ae /lib/oxidized/node.rb
parent63b1bd788e0807f935e0a69c0e3589f9c041206c (diff)
parentde2a9d18a5847439b40adfc0cc4c75e6cbf6262d (diff)
Merge pull request #503 from danilopopeye/ds-fixes-and-refactors
fix repository path resolution
Diffstat (limited to 'lib/oxidized/node.rb')
-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 9f729ed..3e46b17 100644
--- a/lib/oxidized/node.rb
+++ b/lib/oxidized/node.rb
@@ -174,8 +174,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