module documentation
Create a remote Git repository based on the current one
Function | build |
Build the command we pass the script to |
Function | build |
Undocumented |
Function | build |
Create the script that will be run on the remote side |
Function | do |
Undocumented |
Function | do |
Undocumented |
Function | get |
Undocumented |
Function | main |
Undocumented |
Function | parse |
Parse the command line arguments and config files. |
Function | parse |
Sanity check our remote URL |
Function | print |
Print out the git config to push to the newly created repo. |
Function | push |
Undocumented |
Function | read |
Undocumented |
Function | setup |
Undocumented |
Function | usage |
Undocumented |
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']
Parse the command line arguments and config files.
Parameters | |
argv:list of str | the command line arguments |
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