{"thread":{"id":"29813","subject":"[PATCH 2/2] Complain in tests about aliases not working for, alternative config files","startedAt":"2012-03-02T11:00:12Z","lastAt":"2012-03-02T11:00:12Z","messageCount":1,"participants":["Rune Schjellerup Philosof"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"185905","messageId":"4F50A83C.9090407@philosof.dk","threadId":"29813","inReplyTo":null,"subject":"[PATCH 2/2] Complain in tests about aliases not working for, alternative config files","fromName":"Rune Schjellerup Philosof","fromEmail":"rune@philosof.dk","sentAt":"2012-03-02T11:00:12Z","receivedAt":"2012-03-02T11:00:12Z","isPatch":true,"sender":{"key":"rune@philosof.dk","avatar":null},"body":"From c412e07ba45be32f2158c5668752354a979734d6 Mon Sep 17 00:00:00 2001\nFrom: Rune Philosof <rune.git@philosof.dk>\nDate: Fri, 2 Mar 2012 11:13:55 +0100\nSubject: [PATCH 2/2] Complain in tests about aliases not working for\n alternative config files\n\nAliases does not work when set in a configuration file specified by the\nGIT_CONFIG variable.\n\nSigned-off-by: Rune Philosof <rune.git@philosof.dk>\n---\n t/t1300-repo-config.sh |   11 +++++++++++\n 1 files changed, 11 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh\nindex 81ccad5..433ef94 100755\n--- a/t/t1300-repo-config.sh\n+++ b/t/t1300-repo-config.sh\n@@ -955,6 +955,17 @@ test_expect_success 'git -c works with aliases of\nbuiltins' '\n \ttest_cmp expect actual\n '\n\n+test_expect_failure 'aliases work with alternative config' '\n+\t(\n+\t\tGIT_CONFIG=alias &&\n+\t\texport GIT_CONFIG &&\n+\t\tgit config alias.altconfig \"-c foo.check=bar config foo.check\" &&\n+\t\techo bar >expect &&\n+\t\tgit altconfig >actual &&\n+\t\ttest_cmp expect actual\n+\t)\n+'\n+\n test_expect_success 'git -c does not split values on equals' '\n \techo \"value with = in it\" >expect &&\n \tgit -c core.foo=\"value with = in it\" config core.foo >actual &&\n-- \n1.7.5.4\n\n"}]}