Re: [PATCH v6 24/27] t/helper: add test-ref-store to test ref-store functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
---
 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]