You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the preparation for `safe.bareRepository` defaulting to
`explicit` (see 8d1a744), add `GIT_DIR=. && export GIT_DIR &&`
right after `cd <bare> &&` so that subsequent commands access the bare
repo explicitly rather than relying on implicit discovery.
Here is a command-line to help verify this commit mechanically (the
awk script undoes the transformation on the new lines; empty output
is success):
git diff HEAD^! | awk '
/^diff/,/^\+\+\+/ { next }
/^-/ { old[m++] = substr($0,2) }
/^\+/ {
new = substr($0,2)
# undo: strip GIT_DIR export
gsub(/ && GIT_DIR=[.] && export GIT_DIR/, "", new)
if (old[n++] != new) print old[n-1] " != " new
}'
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
0 commit comments