diff options
Diffstat (limited to 'lib/oxidized/output')
-rw-r--r-- | lib/oxidized/output/git.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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' |