From 7ec00a5bea31466de7494a21dcd00b829c15b61d Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Fri, 9 Sep 2016 20:01:17 -0700 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9Cgit=20config=20commit.gpgsign=20?= =?UTF-8?q?false=E2=80=9D=20to=20SCM=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows tests to pass even when a global .gitconfig has gpgsign=true. --- Frameworks/scm/tests/t_git.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/scm/tests/t_git.cc b/Frameworks/scm/tests/t_git.cc index 8e757c62..b5e8b899 100644 --- a/Frameworks/scm/tests/t_git.cc +++ b/Frameworks/scm/tests/t_git.cc @@ -10,7 +10,7 @@ struct setup_t setup_t (std::string const& cmd) { static std::string const git = scm::find_executable("git", "TM_GIT"); - std::string const script = text::format("{ cd '%1$s' && '%2$s' init && '%2$s' config user.email 'test@example.com' && '%2$s' config user.name 'Test Test' && touch .dummy && '%2$s' add .dummy && '%2$s' commit .dummy -mGetHead && %3$s ; } >/dev/null", jail.path().c_str(), git.c_str(), cmd.c_str()); + std::string const script = text::format("{ cd '%1$s' && '%2$s' init && '%2$s' config user.email 'test@example.com' && '%2$s' config user.name 'Test Test' && '%2$s' config commit.gpgsign false && touch .dummy && '%2$s' add .dummy && '%2$s' commit .dummy -mGetHead && %3$s ; } >/dev/null", jail.path().c_str(), git.c_str(), cmd.c_str()); if(io::exec("/bin/sh", "-c", script.c_str(), nullptr) != NULL_STR) { if(info = scm::info(jail.path()))