Returns the origin url for the specified path.
(path)
| 285 | |
| 286 | |
| 287 | def get_git_url(path): |
| 288 | """ Returns the origin url for the specified path. """ |
| 289 | cmd = "%s config --get remote.origin.url" % (git_exe) |
| 290 | result = exec_cmd(cmd, path) |
| 291 | if result['out'] != '': |
| 292 | return result['out'].strip() |
| 293 | return 'Unknown' |
| 294 | |
| 295 | |
| 296 | def download_and_extract(src, target): |
no test coverage detected