Re: [PATCH v6 24/27] t/helper: add test-ref-store to test ref-store functions
- From
Jeff King <peff@peff.net>
- Date
- Mar 22, 2017, 13:34 UTC
- Message-ID
- <20170322133412.e2oqmqekreyuf4gr@sigill.intra.peff.net>
- In-Reply-To
- <20170318020337.22767-25-pclouds@gmail.com>
On Sat, Mar 18, 2017 at 09:03:34AM +0700, Nguyễn Thái Ngọc Duy wrote:
> diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c > new file mode 100644
When nd/files-backend-git-dir is merged to 'next', the new tests in t1405/t1406 break. They need this on top (which should probably just be squashed into this commit when you re-roll).
-- >8 -- Subject: [PATCH] test-ref-store: setup git directory
Without setting up the git directory, we rely on the ".git" fallback in setup_git_env(). This will cause us to abort once b1ef400ee (setup_git_env: avoid blind fall-back to ".git", 2016-10-20) is merged.
Signed-off-by: Jeff King <peff@peff.net> --- t/helper/test-ref-store.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 57849ee59..2d84c45ff 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -261,6 +261,8 @@ int cmd_main(int argc, const char **argv) const char *func; struct command *cmd; + setup_git_directory(); + argv = get_store(argv + 1, &refs); func = *argv++;
-- 2.12.1.788.g3cf5b5ec6