chiark / gitweb /
dgit: Get sense of failed clone failed cleanup error reporting check correct.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Oct 2016 21:08:01 +0000 (22:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Oct 2016 00:04:29 +0000 (01:04 +0100)
Closes:#796773.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index e4f2630c647edac9ca321580fcd66ba3a6670178..9c52188cec5d677c55e4aa31f4d3c3f0a3e9140f 100644 (file)
@@ -92,6 +92,8 @@ dgit (1.5~~) unstable; urgency=medium
     etc.  Closes:#827892.
   * Allow local git config options to override user-global ones,
     as is proper.  Closes:#835858.
+  * Get sense of failed clone failed cleanup error reporting check
+    correct.  Closes:#796773.
 
   Test suite:
   * When sbuild fails, do not crash due to sed not finding the log
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";