sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 0521431f12e7d01a770987bb4f7bc4919e9ba15e
parent ebba259fdcfd8cffe61000b48f11651fe8dd48b3
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sun, 22 May 2016 21:46:35 +0200

SBO::Lib: document race condition in git_sbo_tree where $cwd could be deleted

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm @@ -344,6 +344,7 @@ sub git_sbo_tree { remove_tree($repo_path) if -d $repo_path; $res = system(qw/ git clone /, $url, $repo_path) == 0; } + _race::cond '$cwd could be deleted here'; return 1 if chdir $cwd and $res; return 0; }