summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-15 13:53:04 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-15 13:53:04 +0300
commitf9644655d1bf1421f4b4c1bdd256feebf527194a (patch)
tree61181a2cde27bad68b49a4d76a7c1b09c9d6831d
parent467b74e66a0943e6d967453c64a50c9f795a9da2 (diff)
downloaddh-illumos-f9644655d1bf1421f4b4c1bdd256feebf527194a.tar.gz
git -C !
-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} ) {