aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-22 21:46:35 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-22 21:46:35 +0200
commit0521431f12e7d01a770987bb4f7bc4919e9ba15e (patch)
treed22ae9bdaff762bd42ad8ff87fc0e994bf452d27 /SBO-Lib/lib/SBO/Lib.pm
parentebba259fdcfd8cffe61000b48f11651fe8dd48b3 (diff)
downloadsbotools2-0521431f12e7d01a770987bb4f7bc4919e9ba15e.tar.xz
SBO::Lib: document race condition in git_sbo_tree where $cwd could be deleted
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index a090d01..5bafe0f 100644
--- 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;
}