commit ebba259fdcfd8cffe61000b48f11651fe8dd48b3
parent 868ca21754109304df609eb0bc2ba53656e21588
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sat, 21 May 2016 23:20:25 +0200
SBO::Lib: document race condition in git_sbo_tree where $repo_path can be deleted
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
@@ -330,6 +330,7 @@ sub git_sbo_tree {
my $cwd = getcwd();
my $res;
if (-d "$repo_path/.git" and check_git_remote($repo_path, $url)) {
+ _race::cond '$repo_path can be deleted after -d check';
chdir $repo_path;
$res = eval {
die unless system(qw! git fetch !) == 0; # if system() doesn't return 0, there was an error