chiark / gitweb /
dgit: Get sense of failed clone failed cleanup error reporting check correct.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index b695905c42abde38578b1b4f44fe97620cea85da..7b16ff3fa31cc5bf1a7b30df1cbdd9b03419236c 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3381,7 +3381,7 @@ sub cmd_clone {
            }
            if (stat $dstdir) {
                rmtree($dstdir) or die "remove $dstdir: $!\n";
-           } elsif (!grep { $! == $_ }
+           } elsif (grep { $! == $_ }
                     (ENOENT, ENOTDIR, EACCES, EPERM, ELOOP)) {
            } else {
                print STDERR "check whether to remove $dstdir: $!\n";