]> arthur.barton.de Git - bup.git/commitdiff
web: omit '.' link
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 17 May 2020 20:03:24 +0000 (22:03 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 19:08:32 +0000 (14:08 -0500)
There's no value in offering a link to go to the same place
you're already at, it's just clutter. Should it really be
necessary there's always a browser refresh instead.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/web.py

index 83c7ca6b4de05788e3e2a3a3608b87678a34d0be..cae0d46ebe0b85ed08c4cf513458332f83faa6a8 100755 (executable)
@@ -97,7 +97,6 @@ def _dir_contents(repo, resolution, show_hidden=False):
             if (name not in (b'.', b'..')) and name.startswith(b'.'):
                 continue
         if name == b'.':
-            yield display_info(name, item, item, b'.')
             parent_item = resolution[-2][1] if len(resolution) > 1 else dir_item
             yield display_info(b'..', parent_item, parent_item, b'..')
             continue