From 98312fe99cf8d64e27564671ead47236850ecdc9 Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Thu, 13 Apr 2017 17:05:31 +0100 Subject: [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 --- helpers/git-refresh | 2 ++ helpers/llvm-prepare | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3