aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/osmocom-latest-packages.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-07-22 12:04:01 +0200
committerOliver Smith <osmith@sysmocom.de>2019-07-22 13:22:33 +0200
commitdf967f76f6c02362feaf40c3da22a4c4457f51d4 (patch)
treee3e6f5e17e9b667998f6b0b2673c6f049ae0db3d /scripts/osmocom-latest-packages.sh
parentdcb9edafd4d124d04c42332760f93d8dc36df636 (diff)
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
Diffstat (limited to 'scripts/osmocom-latest-packages.sh')
-rwxr-xr-xscripts/osmocom-latest-packages.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index 1074294..509bced 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+. "$(dirname "$0")/common.sh"
. "$(dirname "$0")/common-obs.sh"
# requirements
@@ -54,7 +55,7 @@ checkout() {
if [ "$project" = "limesuite" ]; then
[ -d "$project" ] || git clone "https://github.com/myriadrf/LimeSuite" "$project"
else
- [ -d "$project" ] || git clone "https://git.osmocom.org/$project"
+ [ -d "$project" ] || osmo_git_clone_date "https://git.osmocom.org/$project"
fi
cd "$project"
git fetch