MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_git_url

Function get_git_url

tools/automate-git.py:287–293  ·  view source on GitHub ↗

Returns the origin url for the specified path.

(path)

Source from the content-addressed store, hash-verified

285
286
287def 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
296def download_and_extract(src, target):

Callers 1

automate-git.pyFile · 0.85

Calls 1

exec_cmdFunction · 0.85

Tested by

no test coverage detected