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), replace `git -C <bare>` with `git
--git-dir=<bare>`. The `-C` flag triggers implicit bare repository
discovery, whereas `--git-dir` specifies the repository location
explicitly.
This commit can be verified mechanically by invoking this command-line
(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: --git-dir=X -> -C X
if (match(new, /--git-dir=([^ ]*)/, a)) {
gsub(/--git-dir=[^ ]*/, "-C " a[1], new)
}
if (old[n++] != new) print old[n-1] " != " new
}'
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
0 commit comments