Permalink
Browse files

Make sure config dir exist before writing files to it

  • Loading branch information...
1 parent 40103ca commit 436cbce426255734c778ea74d64de2e8fc7a402d @tongueroo tongueroo committed Jan 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/gitcycle.rb
View
@@ -550,6 +550,7 @@ def require_git
end
def save_config
+ FileUtils.mkdir_p(File.dirname(@config_path))
File.open(@config_path, 'w') do |f|
f.write(YAML.dump(@config))
end

0 comments on commit 436cbce

Please sign in to comment.