From: Ian Jackson Date: Sun, 9 Oct 2016 21:08:01 +0000 (+0100) Subject: dgit: Get sense of failed clone failed cleanup error reporting check correct. X-Git-Tag: archive/debian/2.0~30 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=d76f34bfa71c438efec0aadf37482dea6360968a dgit: Get sense of failed clone failed cleanup error reporting check correct. Closes:#796773. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index e4f2630c..9c52188c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 b695905c..7b16ff3f 100755 --- 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";