diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-02-23 01:10:40 +0000 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-02-23 01:10:40 +0000 |
commit | 87de41db2a0083c13eec2a38153b2f83d2c75ae4 (patch) | |
tree | 2d60a330b408586504c113249345b1c3b29c0a80 | |
parent | Turn off debug statements by default (diff) | |
download | jitterbug-87de41db2a0083c13eec2a38153b2f83d2c75ae4.tar.gz |
Run the git commands in the correct repo
-rw-r--r-- | lib/jitterbug/Builder.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/jitterbug/Builder.pm b/lib/jitterbug/Builder.pm index c597a65..9c7dc2f 100644 --- a/lib/jitterbug/Builder.pm +++ b/lib/jitterbug/Builder.pm @@ -137,7 +137,10 @@ sub run_task { 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 ); + chdir $pwd; my $builder = $conf->{'jitterbug'}{'build_process'}{'builder'}; |