From 2d80faa85ff4b52b1c370ab2c8d1812cbd5927b9 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 31 Mar 2018 14:48:16 -0500 Subject: [PATCH] vfs: limit root_items branches to refs/heads ...since the top-level VFS names (without a dot prefix) should only resolve to branches. Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/vfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bup/vfs.py b/lib/bup/vfs.py index d073b73..f231f4d 100644 --- a/lib/bup/vfs.py +++ b/lib/bup/vfs.py @@ -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 -- 2.39.2