]> Sergey Matveev's repositories - public-inbox.git/commit
admin: resolve inboxes to absolute paths for index
authorEric Wong <e@80x24.org>
Tue, 22 Dec 2020 06:01:44 +0000 (06:01 +0000)
committerEric Wong <e@80x24.org>
Tue, 22 Dec 2020 22:56:03 +0000 (22:56 +0000)
commit949e8b4a65a2dbb99d8923ebb4715a8724ca8bf2
tree367bec9109d827c9fcb726b0aba859aba188f65a
parent1350f5ab09f72c75ac2cd6c88f6a2b9e198fef55
admin: resolve inboxes to absolute paths for index

Some of my ancient v1-only scripts called public-inbox-index
to operate on GIT_DIR:

GIT_DIR=/path/to/foo.git public-inbox-index

This change ensures they keep working, otherwise "." will be
passed to the --git-dir= switch of git(1) because that's the
default directory if no inboxes are specified on the
command-line.

Fixes: 9fcce78e40b0a7c6 ("script/public-inbox-*: favor caller-provided pathnames")
lib/PublicInbox/Admin.pm