summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-09-14 02:14:58 +0300
committerytti <saku@ytti.fi>2015-09-14 02:14:58 +0300
commit0b6530bdcb228ce295a1dca9c427a44fa7497698 (patch)
tree42a8fc4d99cd03d3eb076d9c5d76254125096856
parent3c3aa79d8c7e92f27aa9663d4fa47da1e84592e3 (diff)
parentd29d2774dac1e5e5eadceccb9edf8c4a2103c3ef (diff)
Merge pull request #186 from nickhilliard/master
cfg.repo needs to be fixed up with File.expand_path on init
-rw-r--r--lib/oxidized/output/git.rb3
1 files changed, 2 insertions, 1 deletions
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 = ''