[PATCH 0/3] sha1-file: warn if alternate is a git repo (not object dir)
- Date: Tue, 4 Dec 2018 14:27:13 +0100
- From: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx>
- Subject: [PATCH 0/3] sha1-file: warn if alternate is a git repo (not object dir)
This adds a warning for the issue discussed upthread. As noted in
these patches we've been emitting an "error" while not impacting the
exit code, should we die() instead? Maybe, but until there's consensus
on that let's change this to warning() while we're at it.
Ævar Arnfjörð Bjarmason (3):
sha1-file: test the error behavior of alt_odb_usable()
sha1-file: emit error if an alternate looks like a repository
sha1-file: change alternate "error:" message to "warning:"
sha1-file.c | 16 ++++++++++++----
t/t5613-info-alternate.sh | 21 +++++++++++++++++++++
2 files changed, 33 insertions(+), 4 deletions(-)