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>
* Test suite: Add fakeroot and make to Test-Depends. These aren't
necessarily pulled in by anything else. (dpkg-dev Recommends
build-essential. But we don't actually need build-essential.)
+ * When cloning a distro which has no git server, correctly leave
+ the user on the local dgit branch, not on `master'.
--
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) {