From 7e6ecbdeb962ea0dda9ad75872aef05ca2760240 Mon Sep 17 00:00:00 2001 From: Anton Aksola Date: Fri, 6 Jun 2014 11:21:13 +0300 Subject: fix: handle group in output git#fetch --- lib/oxidized/output/git.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index 2b07e05..70dd30f 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -44,7 +44,11 @@ class Git < Output def fetch node, group begin - repo = Repo.new(@cfg.repo) + repo = @cfg.repo + if group + repo = File.join File.dirname(repo), group + '.git' + end + repo = Repo.new(repo) (repo.tree / node).data rescue 'node not found' -- cgit v1.2.1