makepkg: git clone instead of git fetch if $dir exists but empty
On 12/08/12 10:24, Mohammad Alsaleh wrote:
> Before this patch, makepkg would only check if $dir exists as an
> indication that a local clone exists. And if $dir does exist, makepkg
> will run git fetch inside it unconditionally.
> After applying this patch, makepkg will check if the existent $dir is
> empty. And if it is, it will be used to store a local clone.
> Signed-off-by: Mohammad Alsaleh <email@example.com>
I assume we should also check this for svn and hg...