From d8973bdc75d5e7c7a35855f78ade347c01f985f1 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Thu, 3 Oct 2024 15:36:43 +0000 Subject: [PATCH] git/export: don't try to diff dirs --- sys/src/cmd/git/export | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/git/export b/sys/src/cmd/git/export index f47c7d4f2..e94d94ee3 100755 --- a/sys/src/cmd/git/export +++ b/sys/src/cmd/git/export @@ -66,10 +66,10 @@ for(c in $commits){ echo diff `{basename $pp} `{basename $cp} for(f in $fc){ a=a/$f - if(! test -e $a) + if(! test -f $a) a=/dev/null b=b/$f - if(! test -e $b) + if(! test -f $b) b=/dev/null diff -ur $a $b }