autobuild: fixed clone source for build trees
authorAndrew Tridgell <tridge@samba.org>
Mon, 7 Feb 2011 00:43:03 +0000 (11:43 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Feb 2011 02:22:02 +0000 (13:22 +1100)
this fixes a bug where autobuild would test the tree that the user
pushed, not the tree that has been rebased on master. That could cause
broken trees to get into master. Andrew Bartlett noticed this with a
tree from Jan 19th.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

script/autobuild.py

index d64ecfb390679575dc2e0c3fb794c139b6d21692..efeb7970087f693f8162841b071eea7f3346c09f 100755 (executable)
@@ -157,7 +157,7 @@ class builder(object):
         cleanup_list.append(self.prefix)
         os.makedirs(self.sdir)
         run_cmd("rm -rf %s" % self.sdir)
-        run_cmd("git clone --shared %s %s" % (gitroot, self.sdir))
+        run_cmd("git clone --shared %s %s" % (test_master, self.sdir), dir=test_master, show=True)
         self.start_next()
 
     def start_next(self):