run update.sh, install netifaces
This commit is contained in:
parent
feb4ce7352
commit
717a291e19
258 changed files with 71187 additions and 1047 deletions
|
|
@ -135,9 +135,12 @@ class Git(VersionControl):
|
|||
self.update_submodules(dest)
|
||||
|
||||
def get_url(self, location):
|
||||
url = self.run_command(
|
||||
['config', 'remote.origin.url'],
|
||||
"""Return URL of the first remote encountered."""
|
||||
remotes = self.run_command(
|
||||
['config', '--get-regexp', 'remote\..*\.url'],
|
||||
show_stdout=False, cwd=location)
|
||||
first_remote = remotes.splitlines()[0]
|
||||
url = first_remote.split(' ')[1]
|
||||
return url.strip()
|
||||
|
||||
def get_revision(self, location):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue