Permalink
Browse files

Stop checking for empty stat values from recursive_dirlist().

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>
  • Loading branch information...
1 parent 8c15ca9 commit f7830d63f195f6ff37fa5a55f9088625fc369aad @rlbdv rlbdv committed Jan 13, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 cmd/index-cmd.py
View
@@ -78,8 +78,7 @@ def hashgen(name):
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)

0 comments on commit f7830d6

Please sign in to comment.