lib/origen/application.rb in origen-0.7.11 vs lib/origen/application.rb in origen-0.7.12

- old
+ new

@@ -98,11 +98,11 @@ # Returns a revision controller instance (e.g. Origen::RevisionControl::Git) which has # been configured to point to the local workspace and the remote repository # as defined by Origen.app.config.rc_url. If the revision control URL has not been # defined, or it does not resolve to a recognized revision control system, then this # method will return nil. - def revision_controller + def revision_controller(options = {}) if current? if config.rc_url if config.rc_url =~ /^sync:/ @revision_controller ||= RevisionControl::DesignSync.new( local: root, @@ -111,10 +111,10 @@ elsif config.rc_url =~ /git/ @revision_controller ||= RevisionControl::Git.new( local: root, # If a workspace is based on a fork of the master repo, config.rc_url may not # be correct - remote: RevisionControl::Git.origin || config.rc_url + remote: (options[:uninitialized] ? config.rc_url : (RevisionControl::Git.origin || config.rc_url)) ) end elsif config.vault @revision_controller ||= RevisionControl::DesignSync.new(