From 1a33f0c2539e3bd18abbc229755ec07b8e549a0c Mon Sep 17 00:00:00 2001 From: Jordi Villar Date: Wed, 24 Oct 2018 11:11:51 +0200 Subject: [PATCH] Fix git ls without patterns --- git-fat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-fat b/git-fat index f8e216d..1b1c624 100755 --- a/git-fat +++ b/git-fat @@ -464,6 +464,8 @@ class GitFat(object): def orphan_files(self, patterns=[]): 'generator for all orphan placeholders in the working tree' + if not patterns or patterns == ['']: + patterns = ['.'] for fname in subprocess.check_output(['git', 'ls-files', '-z'] + patterns).split('\x00')[:-1]: digest = self.decode_file(fname)[0] if digest: