Skip to content
Snippets Groups Projects
Commit f93122b2 authored by Simona Vetter's avatar Simona Vetter
Browse files

dim: Share git object storage

Apparently this needs an explicit repack to work, which reduces risks
with pruning. So do this only in the setup functions.

Prep work for multiple workdir checkouts, but already saves an
impressive 3G here.
parent 94213905
No related branches found
No related tags found
No related merge requests found
...@@ -463,6 +463,8 @@ function setup_dim ...@@ -463,6 +463,8 @@ function setup_dim
fi fi
cd maintainer-tools cd maintainer-tools
git config remote.origin.url $drm_intel_ssh git config remote.origin.url $drm_intel_ssh
echo "$DIM_PREFIX/$DIM_DRM_INTEL/.git/objects" > .git/objects/info/alternates
git repack -a -d -l
if ! git branch | grep maintainer-tools > /dev/null ; then if ! git branch | grep maintainer-tools > /dev/null ; then
git checkout -t origin/maintainer-tools git checkout -t origin/maintainer-tools
fi fi
...@@ -473,6 +475,8 @@ function setup_dim ...@@ -473,6 +475,8 @@ function setup_dim
fi fi
cd drm-intel-rerere cd drm-intel-rerere
git config remote.origin.url $drm_intel_ssh git config remote.origin.url $drm_intel_ssh
echo "$DIM_PREFIX/$DIM_DRM_INTEL/.git/objects" > .git/objects/info/alternates
git repack -a -d -l
if ! git branch | grep rerere-cache > /dev/null ; then if ! git branch | grep rerere-cache > /dev/null ; then
git checkout -t origin/rerere-cache git checkout -t origin/rerere-cache
fi fi
...@@ -484,6 +488,8 @@ function setup_dim ...@@ -484,6 +488,8 @@ function setup_dim
cd drm-intel-nightly cd drm-intel-nightly
mkdir -p .git/rr-cache mkdir -p .git/rr-cache
git config remote.origin.url $drm_intel_ssh git config remote.origin.url $drm_intel_ssh
echo "$DIM_PREFIX/$DIM_DRM_INTEL/.git/objects" > .git/objects/info/alternates
git repack -a -d -l
if ! git branch | grep drm-intel-nightly > /dev/null ; then if ! git branch | grep drm-intel-nightly > /dev/null ; then
git checkout -t origin/drm-intel-nightly git checkout -t origin/drm-intel-nightly
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment