Print timing of git operations

This commit is contained in:
Simon Sapin 2019-11-16 14:15:15 +01:00
parent 591d7ad6c1
commit a74046a3b6

View file

@ -597,8 +597,8 @@ class UnixTaskMixin(Task):
.with_early_script(""" .with_early_script("""
git init repo git init repo
cd repo cd repo
git fetch {depth} "$GIT_URL" "$GIT_REF" time git fetch {depth} "$GIT_URL" "$GIT_REF"
git reset --hard "$GIT_SHA" time git reset --hard "$GIT_SHA"
""".format(depth="--depth 100" if shallow else "")) """.format(depth="--depth 100" if shallow else ""))
def with_curl_script(self, url, file_path): def with_curl_script(self, url, file_path):