summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2023-04-04 18:48:30 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-04 22:19:59 +0000
commitcafcd7af907083bc80a2157a368294e301960751 (patch)
treeacee7215c62096965168331ba38be4d0c2363fd5
parentce8161dc470c28e7228d6651f9b675f327c71963 (diff)
downloadchrome-ec-cafcd7af907083bc80a2157a368294e301960751.tar.gz
util/compare_build.sh: Do a shared checkout
As of git 2.39.2 clone operations are broken when the .git/objects folder is a symlink. Using --shared works around the issue without the performance impact of file:// which drops --local. BRANCH=None BUG=b:276300917 TEST=run compare_build locally. Change-Id: Ic0735970abe46f3c95badadd84480b81037116f9 Signed-off-by: Allen Webb <allenwebb@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4400552 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Tested-by: Tom Hughes <tomhughes@chromium.org>
-rwxr-xr-xutil/compare_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/compare_build.sh b/util/compare_build.sh
index 10399d410b..9f689ea9b7 100755
--- a/util/compare_build.sh
+++ b/util/compare_build.sh
@@ -232,7 +232,7 @@ LINKS ?= ${LINKS[*]}
all: build-${OLD_REF} build-${NEW_REF}
ec-%:
- git clone --quiet --no-checkout \$(ORIGIN) \$@
+ git clone --quiet --no-checkout --shared \$(ORIGIN) \$@
git -C \$@ checkout --quiet \$(@:ec-%=%)
ifneq (\$(LINKS),)
ln -s \$(addprefix \$(ORIGIN)/,\$(LINKS)) \$@