Method: Git::Lib#return_base_opts_from_clone
- Defined in:
- lib/git/lib.rb
#return_base_opts_from_clone(clone_dir, opts) (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1801 1802 1803 1804 1805 1806 1807 1808 |
# File 'lib/git/lib.rb', line 1801 def return_base_opts_from_clone(clone_dir, opts) base_opts = {} base_opts[:repository] = clone_dir if opts[:bare] || opts[:mirror] base_opts[:working_directory] = clone_dir unless opts[:bare] || opts[:mirror] base_opts[:log] = opts[:log] if opts[:log] base_opts[:git_ssh] = opts[:git_ssh] if opts.key?(:git_ssh) base_opts end |