jedbrown / git-fat

Simple way to handle fat files without committing them to git, supports synchronization using rsync
BSD 2-Clause "Simplified" License
620 stars 136 forks source link

latest commit break git-fat find #74

Closed isuruf closed 7 years ago

isuruf commented 7 years ago
$python git-fat find 1000000
Traceback (most recent call last):
  File "git-fat", line 616, in <module>
    fat.cmd_find(sys.argv[2:])
  File "git-fat", line 540, in cmd_find
    for path, sizes in sorted(pathsizes.items(), key=lambda p,s: max(s), reverse=True):
TypeError: <lambda>() takes exactly 2 arguments (1 given)
isuruf commented 7 years ago

Changing line 540 to for path, sizes in sorted(pathsizes.items(), key=lambda s: max(s), reverse=True) works

jedbrown commented 7 years ago

Thanks. Your suggestion needed a tweak to get the correct sort order.

isuruf commented 7 years ago

Thanks.