X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;h=c8907cf6eb48739a2f53854c46cf54cb641ba79c;hb=e4fb7e9b2592d0a80ca213c94f3a462abd31c6c8;hp=5f1ef2e59bc3864faf7f5d4abcd27409018ee9f3;hpb=07261afb451ed4420d3dbda87613fa1229130276;p=dgit.git diff --git a/dgit b/dgit index 5f1ef2e5..c8907cf6 100755 --- a/dgit +++ b/dgit @@ -1261,6 +1261,10 @@ sub clone ($) { progress "starting new git history"; } fetch_from_archive() or no_such_package; + my $vcsgiturl = $dsc->{'Vcs-Git'}; + if (length $vcsgiturl) { + runcmd @git, qw(remote add vcs-git), $vcsgiturl; + } runcmd @git, qw(reset --hard), lrref(); printdone "ready for work in $dstdir"; }