3 # Prevent any gc --auto from taking place
4 # And make $Girocco::Config::autogchack happen
6 # Beware, we MAY be running in a chroot!
8 # If GIROCCO_SUPPRESS_AUTO_GC_UPDATE immediately exit suppressing auto gc
9 [ "${GIROCCO_SUPPRESS_AUTO_GC_UPDATE:-0}" = "0" ] ||
exit 1
11 # If we're in the chroot immediately exit suppressing auto gc
12 [ -x @perlbin@
] ||
exit 1
18 # Make sure the current directory is where we expect to be
19 [ "${GIT_DIR+set}" != "set" ] ||
cd "${GIT_DIR:-.}" ||
exit 1
20 case "${PWD%/*}" in */worktrees
)
23 # But it COULD just be a coincidence...
24 [ -s commondir
] && [ -s HEAD
] &&
25 _cmndir
= && read -r _cmndir
<commondir
2>/dev
/null
&&
26 [ -n "$_cmndir" ] && [ -d "$_cmndir" ]
28 # ...it is not, fix it!
29 cd "$_cmndir" ||
exit 1
32 [ "${GIT_DIR+set}" != "set" ] || GIT_DIR
="."
35 case "$PWD" in *?
/mob
)
37 GIROCCO_PERSONAL_MOB
=1
46 unset GIROCCO_SUPPRESS_AUTO_GC_UPDATE
47 .
"$cfg_basedir/jobd/generate-auto-gc-update.sh"
48 generate_auto_gc_update