aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-04-13 17:05:31 +0100
committerRenato Golin <renato.golin@linaro.org>2017-04-13 17:05:31 +0100
commit98312fe99cf8d64e27564671ead47236850ecdc9 (patch)
tree4c992c343e69b21b38db81a6f69c27d76654c5a8
parentce9fe8a6b5b98039707c86c9b4f0f5f980d062c1 (diff)
downloadlinaro-scripts-98312fe99cf8d64e27564671ead47236850ecdc9.tar.gz
[git] Prepare repos with --no-checkout
This will save space on the main repository, where no one really needs the files checked out anyway. Change-Id: I0414da0e6523b954d0cf90388a53dd423a1855af
-rwxr-xr-xhelpers/git-refresh2
-rwxr-xr-xhelpers/llvm-prepare2
2 files changed, 3 insertions, 1 deletions
diff --git a/helpers/git-refresh b/helpers/git-refresh
index 100654f..d423812 100755
--- a/helpers/git-refresh
+++ b/helpers/git-refresh
@@ -17,6 +17,8 @@ trap popdq EXIT
safe_run git checkout master
echo " + Fetching origin..."
safe_run git fetch origin
+safe_run git remote update -p
+
if is_git_svn; then
echo " + Rebasing SVN master..."
safe_run git svn rebase -l
diff --git a/helpers/llvm-prepare b/helpers/llvm-prepare
index 4f57447..0281fd6 100755
--- a/helpers/llvm-prepare
+++ b/helpers/llvm-prepare
@@ -15,7 +15,7 @@ function prepare() {
if [ ! -d $src/.git ]; then
mkdir -p $src
cd $src/..
- safe_run git clone $origin $src
+ safe_run git clone --no-checkout $origin $src
fi
# Link with upstream SVN
if [[ $LLVM_GITRW = 'yes' && ! -d $src/.git/svn ]]; then