lib/origen/revision_control/base.rb in origen-0.7.28 vs lib/origen/revision_control/base.rb in origen-0.7.29

- old
+ new

@@ -25,11 +25,11 @@ unless options[:remote] && options[:local] fail ':remote and :local options must be supplied when instantiating a new RevisionControl object' end @remote = Pathname.new(options[:remote]) @local = Pathname.new(options[:local]).expand_path - initialize_local_dir + initialize_local_dir(options) end # Build the local workspace for the first time. # # This is roughly equivalent to running the checkout command, but should be used in the case where @@ -247,10 +247,10 @@ else tag end end - def initialize_local_dir + def initialize_local_dir(options = {}) FileUtils.mkdir_p(local.to_s) unless local.exist? end end end end