]> arthur.barton.de Git - bup.git/commitdiff
Stop checking for empty stat values from recursive_dirlist().
authorRob Browning <rlb@defaultvalue.org>
Sun, 13 Jan 2013 23:17:16 +0000 (17:17 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 27 Jan 2013 22:00:07 +0000 (16:00 -0600)
Remove the "if pst:" guard in index-cmd.py, since it doesn't appear to
be possible for recursive_dirlist() to return None for the stat value.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
cmd/index-cmd.py

index a2df5115492dcdc9b99ee0d6d7f5c01a7cd1e73a..953d35392392fba54e4379f246c41d3e166822c4 100755 (executable)
@@ -78,8 +78,7 @@ def update_index(top, excluded_paths):
                 rig.cur.repack()
             rig.next()
         if rig.cur and rig.cur.name == path:    # paths that already existed
-            if pst:
-                rig.cur.from_stat(pst, tstart)
+            rig.cur.from_stat(pst, tstart)
             if not (rig.cur.flags & index.IX_HASHVALID):
                 if hashgen:
                     (rig.cur.gitmode, rig.cur.sha) = hashgen(path)