From d29d2774dac1e5e5eadceccb9edf8c4a2103c3ef Mon Sep 17 00:00:00 2001 From: Nick Hilliard Date: Mon, 14 Sep 2015 00:12:31 +0100 Subject: cfg.repo needs to be fixed up with File.expand_path on init --- lib/oxidized/output/git.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/output') diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index e568a58..3757cfc 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -19,6 +19,7 @@ class Git < Output CFGS.save :user raise NoConfig, 'no output git config, edit ~/.config/oxidized/config' end + @cfg.repo = File.expand_path @cfg.repo end def store file, outputs, opt={} @@ -26,7 +27,7 @@ class Git < Output @user = (opt[:user] or @cfg.user) @email = (opt[:email] or @cfg.email) @opt = opt - repo = File.expand_path @cfg.repo + repo = @cfg.repo outputs.types.each do |type| type_cfg = '' -- cgit v1.2.1