2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

fix: Move logging to lower level App.get API

This commit is contained in:
Gavin D'souza 2021-11-15 12:40:20 +05:30
parent 13ed9beca5
commit 4ba5422b65

View File

@ -137,6 +137,10 @@ class App(AppMeta):
branch = f"--branch {self.tag}" if self.tag else ""
shallow = "--depth 1" if self.bench.shallow_clone else ""
fetch_txt = f"Getting {self.repo}"
click.secho(fetch_txt, fg="yellow")
logger.log(fetch_txt)
self.bench.run(
f"git clone {self.url} {branch} {shallow} --origin upstream",
cwd=os.path.join(self.bench.name, "apps"),