From: Junio C Hamano Date: Tue, 18 Nov 2014 20:15:06 GMT Subject: Re: [PATCH] git-new-workdir: Don't fail if the target directory is empty Message-ID: In-Reply-To: <1416339408.3899.22.camel@mad-scientist.net> Paul Smith writes: > Getting rid of ls/wc was not as simple as I'd hoped, I didn't say ls/wc was not portable. Assuming that a directory for which the output from "ls -a" has two entries is empty may be.