Since phase1 needs an existing source.git to bootstrap its config, prepare
the git clone further processing.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
# find targets
targets = [ ]
+if not os.path.isdir(home_dir+'/source.git'):
+ subprocess.call(["git", "clone", "--depth=1", repo_url, home_dir+'/source.git'])
+
findtargets = subprocess.Popen([home_dir+'/dumpinfo.pl', 'targets'],
stdout = subprocess.PIPE, cwd = home_dir+'/source.git')