summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdh_illumos_gate4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_illumos_gate b/dh_illumos_gate
index 75e02af..c348436 100755
--- a/dh_illumos_gate
+++ b/dh_illumos_gate
@@ -189,8 +189,8 @@ if ( $dh{CHECKOUT} ) {
if ( -e $dh{DESTDIR} ) {
error("Destination path `$dh{DESTDIR}' exists.");
}
- doit( 'git', 'clone', '-n', $dh{REPOSITORY}, $dh{DESTDIR} );
- complex_doit(qq(cd $dh{DESTDIR} && git checkout $dh{CHECKOUT}));
+ doit( 'git', 'clone', '-n', $dh{REPOSITORY}, $dh{DESTDIR} );
+ doit( 'git', '-C', $dh{DESTDIR}, 'checkout', $dh{CHECKOUT} );
exit;
}
elsif ( $dh{CREATE_ORIG} ) {