commit 35f3afdbdea49b9b6da3431022a50b94a47ec912
parent e06de7bb7f683450338fa33ac412774acadb8aed
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sat, 10 Dec 2016 19:05:00 +0200
SBO::Lib::Repo: add --no-local switch to git clone command. This closes #47.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SBO-Lib/lib/SBO/Lib/Repo.pm b/SBO-Lib/lib/SBO/Lib/Repo.pm
@@ -242,7 +242,7 @@ sub git_sbo_tree {
} else {
chdir $config{SBO_HOME} or return 0;
remove_tree($repo_path) if -d $repo_path;
- $res = system(qw/ git clone /, $url, $repo_path) == 0;
+ $res = system(qw/ git clone --no-local /, $url, $repo_path) == 0;
}
_race::cond '$cwd could be deleted here';
return 1 if chdir $cwd and $res;