cloning.rb revision 89575ed6ea1f9c9058164005c0c8a64e8aeae3a4
require 'open3'
SCRIPT_REMOTE_SET = "#{DIR}/remote_set_url_push.sh"
SCRIPT_PUSH = "#{DIR}/push.sh"
SCRIPT_PULL = "#{DIR}/pull.sh"
SCRIPT_SVN_REBASE = "#{DIR}/svn_rebase.sh"
exec 'git', 'push'
end
# runs `git svn rebase`
end
end
exec 'git', 'fetch', 'origin'
end
exec 'git', 'fetch', 'origin'
end
end
end
exec 'git', 'remote', 'rm', 'origin'
end
# clones a git repository into a bare git repository
def clone_git(source_path, target_path, bare=false)
if bare
else
end
end
# clones a git repository into a bare git repository and one with a working copy
# last parameter (max_revision) is used for testing only
else
return result_svn unless result_svn[:success]
return result_git unless result_git[:success]
return result_remote_rm unless result_remote_rm[:success]
return result_remote_add unless result_remote_add[:success]
end
end
end
end
if max_revision.nil?
else
end
end
end
end
end
exec *args
end
if repo.bare?
else
end
end
end