diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 23:01:33 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 23:01:33 -0700 |
commit | f4127b1235b585b5d82082fcfd820b68479ceba4 (patch) | |
tree | 32042a41db19953f03797d46de59f0d6d4d13f7c /lib | |
parent | Update index route tests to be less fragile, since we now have tests that cre... (diff) | |
download | jitterbug-f4127b1235b585b5d82082fcfd820b68479ceba4.tar.gz |
Add a test to verify we get the expected sha1
Diffstat (limited to '')
-rw-r--r-- | lib/jitterbug/Builder.pm | 7 |
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'} |