Create a remote Git repository based on the current one
Function | print_config | Print out the git config to push to the newly created repo. |
Function | parse_url | Sanity check our remote URL |
Function | build_remote_script | Create the script that will be run on the remote side |
Function | build_cmd | Build the command we pass the script to |
Function | read_yn | Undocumented |
Function | setup_branch_tracking | Undocumented |
Function | push_branches | Undocumented |
Function | usage_msg | Undocumented |
Function | build_parser | Undocumented |
Function | parse_args | Parse the command line arguments and config files. |
Function | do_create | Undocumented |
Function | get_config_names | Undocumented |
Function | do_list | Undocumented |
Function | main | Undocumented |
Print out the git config to push to the newly created repo.
>>> print_config({'name': 'name', 'url': 'url'}, ['foo', 'bar']) [remote "name"] url = url fetch = +refs/heads/*:refs/remotes/name/* push = foo push = bar [branch "foo"] remote = name merge = refs/heads/foo [branch "bar"] remote = name merge = refs/heads/bar
Build the command we pass the script to
>>> build_cmd({'scheme': ''}) ['sh'] >>> build_cmd({'scheme': 'ssh', 'host': 'host', 'port': 80}) ['ssh', '-p', 80, 'host', 'sh']