about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 23:01:33 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 23:01:33 -0700
commitf4127b1235b585b5d82082fcfd820b68479ceba4 (patch)
tree32042a41db19953f03797d46de59f0d6d4d13f7c /lib
parentUpdate index route tests to be less fragile, since we now have tests that cre... (diff)
downloadjitterbug-f4127b1235b585b5d82082fcfd820b68479ceba4.tar.gz
Add a test to verify we get the expected sha1
Diffstat (limited to 'lib')
-rw-r--r--lib/jitterbug/Builder.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/jitterbug/Builder.pm b/lib/jitterbug/Builder.pm
index 256d3d5..eb9f924 100644
--- a/lib/jitterbug/Builder.pm
+++ b/lib/jitterbug/Builder.pm
@@ -124,7 +124,7 @@ sub run_task {
             debug("Checking out correct commit");
 
             # TODO: this may fail on non-unixy systems
-            system("git checkout " . $task->commit->sha256 . " &>/dev/null" );
+            system("git checkout " . $task->commit->sha256 . "&>/dev/null" );
             chdir $pwd;
         } else {
             debug("Creating new repo");
@@ -138,10 +138,11 @@ sub run_task {
     $self->sleep(1); # avoid race conditions
 
     debug("Checking out " . $task->commit->sha256 . " from $repo into $build_dir\n");
-    # $r->run( 'checkout', $task->commit->sha256 );
     my $pwd = getcwd;
     chdir $build_dir;
-    system("git checkout " . $task->commit->sha256 );
+
+    # TODO: this may fail on non-unixy systems
+    system("git checkout " . $task->commit->sha256 . "&>/dev/null");
     chdir $pwd;
 
     my $builder       =    $conf->{'jitterbug'}{'projects'}{$project->name}{'builder'}