]> arthur.barton.de Git - bup.git/commitdiff
cmd/ls: fix a typo causing 'bup ls foo/latest' to not work.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 06:50:34 +0000 (22:50 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 06:50:34 +0000 (22:50 -0800)
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/ls-cmd.py
t/test.sh

index 44359a3ec2ba275c00240deb805b55dfa49cd37e..3854a500e27a5dd772200a0a580966a261695e6b 100755 (executable)
@@ -39,7 +39,7 @@ for d in extra:
                 if opt.all or not sub.name.startswith('.'):
                     print_node(sub.name, sub)
         else:
-            if opt.all or not sub.name.startswith('.'):
+            if opt.all or not n.name.startswith('.'):
                 print_node(d, n)
     except vfs.NodeError, e:
         log('error: %s\n' % e)
index 53df63b0d7700c517412c0ea09ebfd0e1f44f060..2142471e962cde94c2951c58e9eea76809df6680 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -150,6 +150,8 @@ WVPASS ls -lR \
 WVPASS bup ls
 WVFAIL bup ls /does-not-exist
 WVPASS bup ls /lslr
+WVPASS bup ls /lslr/latest
+WVPASS bup ls /lslr/latest/
 #WVPASS bup ls /lslr/1971-01-01   # all dates always exist
 WVFAIL diff -u tags1.tmp tags2.tmp