summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hilliard <nick@foobar.org>2015-09-14 00:12:31 +0100
committerNick Hilliard <nick@foobar.org>2015-09-14 00:12:31 +0100
commitd29d2774dac1e5e5eadceccb9edf8c4a2103c3ef (patch)
treeda05d4b5cc497c1fed3487edb88f182f26f75894
parent967fd0ad7aaf2f18b0be28c7e9831a82266a20b4 (diff)
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 = ''