summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 02:49:22 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 02:49:23 +0000
commitd422e614352724c8cd511c8d1ae8a6d9a1ba5265 (patch)
treed5b9e740e5c464dee1b66da453e48ff9103ea3fe /dgit
parent5ca654531c85b6bb69eb4a324dbe2244c2ac2a3a (diff)
dgit: Make clone_set_head not depend on $giturl
When cloning a distro which has no git server, correctly leave the user on the local dgit branch, not on `master'. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index 0f9236c..f1a30c3 100755
--- a/dgit
+++ b/dgit
@@ -3096,9 +3096,9 @@ sub clone ($) {
mkdir $dstdir or fail "create \`$dstdir': $!";
changedir $dstdir;
runcmd @git, qw(init -q);
+ clone_set_head();
my $giturl = access_giturl(1);
if (defined $giturl) {
- clone_set_head();
runcmd @git, qw(remote add), 'origin', $giturl;
}
if ($hasgit) {