chiark / gitweb /
When cloning, set up a remote `vcs-git' from the package's Vcs-Git (and put an approp...
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 5f1ef2e59bc3864faf7f5d4abcd27409018ee9f3..c8907cf6eb48739a2f53854c46cf54cb641ba79c 100755 (executable)
--- 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";
 }