chiark / gitweb /
git fetching: Use basedistro for lrfetchrefs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 00:52:59 +0000 (00:52 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 22:14:48 +0000 (22:14 +0000)
These do not need to vary with the suite, because the refs are named,
within this namespace, after the corresponding refs on the server.

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

diff --git a/dgit b/dgit
index 667919c4b38a9705581916ce48b49a00ff26f5e8..2427f72c06119acd0c3a01b939941f5d825cebcb 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2485,7 +2485,7 @@ sub ensure_we_have_orig () {
 
 #---------- git fetch ----------
 
-sub lrfetchrefs () { return "refs/dgit-fetch/$csuite"; }
+sub lrfetchrefs () { return "refs/dgit-fetch/".access_basedistro(); }
 sub lrfetchref () { return lrfetchrefs.'/'.server_branch($csuite); }
 
 # We fetch some parts of lrfetchrefs/*.  Ideally we delete these