diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-09 22:08:01 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-10 01:04:29 +0100 |
commit | d76f34bfa71c438efec0aadf37482dea6360968a (patch) | |
tree | 14810307178aee234e6e615ee112000f2de665cb /dgit | |
parent | 3b0766cf7fd581dde3fb31b9264045fa201db77a (diff) |
dgit: Get sense of failed clone failed cleanup error reporting check correct.
Closes:#796773.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |