chiark / gitweb /
clone: Postpone canonicalise_suite
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 02:50:12 +0000 (02:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 02:50:12 +0000 (02:50 +0000)
We are going to want to do some other things beforehand, but after the
dryrun safety catch.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index f1a30c3a989a46748b770c070a040df654d9d94c..5056e11d158c067a308a6021679a0296c54ceeee 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3090,8 +3090,8 @@ END
 
 sub clone ($) {
     my ($dstdir) = @_;
-    canonicalise_suite();
     badusage "dry run makes no sense with clone" unless act_local();
+    canonicalise_suite();
     my $hasgit = check_for_git();
     mkdir $dstdir or fail "create \`$dstdir': $!";
     changedir $dstdir;