ensure git submodules are updated and initialised

pull/639/head
Alistair Miles 2018-12-24 13:42:43 +00:00 zatwierdzone przez David Hoese
rodzic 8d8c21e55e
commit 62005f6f15
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4A48A4BB6FFD37E7
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -45,6 +45,12 @@ class Git(ContentProvider):
capture=yield_output):
yield line
# ensure that git submodules are initialised and updated
for line in execute_cmd(['git', 'submodule', 'update', '--init', '--recursive'],
cwd=output_dir,
capture=yield_output):
yield line
cmd = ['git', 'rev-parse', 'HEAD']
sha1 = subprocess.Popen(cmd, stdout=subprocess.PIPE, cwd=output_dir)
self._sha1 = sha1.stdout.read().decode().strip()