From: Ivo Raisr Date: Tue, 15 Aug 2017 20:05:02 +0000 (+0200) Subject: Fix bin/nightly. X-Git-Tag: VALGRIND_3_14_0~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b07650fbc022f2a6d98333220e257247c67db4fb;p=thirdparty%2Fvalgrind.git Fix bin/nightly. Reported and patch suggested by: Rich Coe --- diff --git a/nightly/bin/nightly b/nightly/bin/nightly index 75794f8363..92fa076286 100755 --- a/nightly/bin/nightly +++ b/nightly/bin/nightly @@ -88,11 +88,12 @@ fi #---------------------------------------------------------------------------- # Clone the GIT repository first. We will query it and copy it afterwards. -git clone --quiet git://sourceware.org/git/valgrind.git/ valgrind-repo +git clone --quiet $valgrind_git_repo valgrind-repo cd valgrind-repo commits=$( git rev-list --after="24 hours ago" master ) if [ -z "$commits" ]; then + cd .. echo "There are no new commits since yesterday -- skipping nightly build." > unchanged.log exit 0 fi @@ -117,8 +118,7 @@ for logfile in old new ; do # Check out, build, run tests runcmd $logfile \ "Checking out Valgrind source tree" \ - "cp -r --preserve=links valgrind-repo valgrind-$logfile\ - && git checkout ${git_commit}" && \ + "cp -r --preserve=links valgrind-repo valgrind-$logfile && cd valgrind-$logfile && git checkout ${git_commit}" && \ \ runcmd $logfile \ "Configuring valgrind " \