Browse files

Stop checking for empty stat values from recursive_dirlist().

Remove the "if pst:" guard in, since it doesn't appear to
be possible for recursive_dirlist() to return None for the stat value.

Signed-off-by: Rob Browning <>
Reviewed-by: Zoran Zaric <>
  • 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/
@@ -78,8 +78,7 @@ def hashgen(name):
if rig.cur and == 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.