]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bin/nightly.
authorIvo Raisr <ivosh@ivosh.net>
Tue, 15 Aug 2017 20:05:02 +0000 (22:05 +0200)
committerIvo Raisr <ivosh@ivosh.net>
Tue, 15 Aug 2017 20:05:02 +0000 (22:05 +0200)
Reported and patch suggested by: Rich Coe <rcoe@wi.rr.com>

nightly/bin/nightly

index 75794f8363d3108a66a86acccb99a3d2331e14a7..92fa076286e3971ab6be8b9c9b87f4c53332bef7 100755 (executable)
@@ -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             " \