]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/vfs.py
vfs: limit root_items branches to refs/heads
[bup.git] / lib / bup / vfs.py
index d073b7374654c7d3cd9a1031a9703fce4b19b835..f231f4d790ddd48913dd1c2ad8025a33aa28b4db 100644 (file)
@@ -457,7 +457,7 @@ def root_items(repo, names=None, want_meta=True):
     for ref in names:
         if ref in ('.', '.tag'):
             continue
-        it = repo.cat(ref)
+        it = repo.cat('refs/heads/' + ref)
         oidx, typ, size = next(it)
         if not oidx:
             for _ in it: pass