From df967f76f6c02362feaf40c3da22a4c4457f51d4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 22 Jul 2019 12:04:01 +0200 Subject: OBS: print date/time before git clone and on error The OBS job clones a lot of repositories from git.osmocom.org every night, so it is a good candidate to reproduce the "garbage at end of loose object" error we are getting sporadically. Print exact timestamps, so we can check if there is anything related in the server logs, when this error happens again. Related: OS#4083 Change-Id: Ic9a6d3f0c2b8dad2661ede793c21307f1680a52e --- scripts/osmocom-nightly-packages.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/osmocom-nightly-packages.sh') diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh index 172e4e0..1c76cc1 100755 --- a/scripts/osmocom-nightly-packages.sh +++ b/scripts/osmocom-nightly-packages.sh @@ -1,4 +1,5 @@ #!/bin/bash +. "$(dirname "$0")/common.sh" . "$(dirname "$0")/common-obs.sh" # requirements @@ -68,9 +69,9 @@ checkout() { cd "$REPO" if [ -n "$branch" ] ; then - git clone "$url/$name" -b "$branch" + osmo_git_clone_date "$url/$name" -b "$branch" else - git clone "$url/$name" + osmo_git_clone_date "$url/$name" fi cd - -- cgit v1.2.3