From 0763acf64c92bf23a83dc6983eef77d9f8896029 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Wed, 9 Apr 2008 11:55:33 -0700 Subject: [PATCH] [commit-patch] It's ok to not be able to backup a file that is being removed from the repo. --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index d3cff64..3255093 100755 --- a/commit-patch +++ b/commit-patch @@ -75,7 +75,7 @@ die "No files in patch" unless scalar @files; eval { for my $f (@files) { - run ["cp", "-f", $f, "$f.orig.$$"] or die "couldn't make backup of $f: $!"; + run ["cp", "-f", $f, "$f.orig.$$"] or die "couldn't make backup of $f: $!" if -f $f; $clean{"$f.orig.$$"} = $f; } $SIG{PIPE} = $SIG{INT} = $SIG{QUIT} = sub { clean(); print "Cleanly aborted\n"; }; -- 2.51.2