aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-12-10 19:05:00 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-12-10 19:05:00 +0200
commit35f3afdbdea49b9b6da3431022a50b94a47ec912 (patch)
tree6809187d40e9ec93fcc787ab86128a40ce333d1d
parente06de7bb7f683450338fa33ac412774acadb8aed (diff)
downloadsbotools-35f3afdbdea49b9b6da3431022a50b94a47ec912.tar.xz
SBO::Lib::Repo: add --no-local switch to git clone command. This closes #47.
-rw-r--r--SBO-Lib/lib/SBO/Lib/Repo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Repo.pm b/SBO-Lib/lib/SBO/Lib/Repo.pm
index e920b6b..1330073 100644
--- 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;