When svn_load_dirs.pl is run without the -t option, cleanup on exit
fails with the following error:
"cannot remove path when cwd is
The only mention of the bug I have found was at the bottom of this forum post:
The fix is very simple: change the working directory to the parent of
the directory to remove. Thus we ensure that the cwd is not inside the
path we attempt to remove. This change has no other side effect
because this code only runs just before exiting the program.
Fix broken cleanup in svn_load_dirs.pl.
* contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in (DESTROY):
Change cwd to the parent of the directory to remove.
@@ -2073,5 +2073,6 @@
print "Cleaning up $temp_dir\n";
+ chdir( $temp_dir . "/.." );
File::Path::rmtree([$temp_dir], 0, 0);
Received on 2019-07-19 15:39:36 CEST