From 3921f2011bbe1e3f48684b4caf3a76c1d584732e Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 14 May 2016 17:59:05 +0200 Subject: SBO::Lib: document another race condition in git fetch/reset combo --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 26e6561..205909d 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -331,6 +331,7 @@ sub git_sbo_tree { chdir $repo_path; $res = eval { die unless system(qw! git fetch !) == 0; # if system() doesn't return 0, there was an error + _race::cond 'git repo could be changed or deleted here'; die unless system(qw! git reset --hard origin !) == 0; unlink "$repo_path/SLACKBUILDS.TXT"; 1; -- cgit v1.2.3