From: Rune Schjellerup Philosof <rune@philosof.dk>
To: git@vger.kernel.org
Subject: [PATCH 2/2] Complain in tests about aliases not working for, alternative config files
Date: Fri, 02 Mar 2012 12:00:12 +0100 [thread overview]
Message-ID: <4F50A83C.9090407@philosof.dk> (raw)
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
From c412e07ba45be32f2158c5668752354a979734d6 Mon Sep 17 00:00:00 2001
From: Rune Philosof <rune.git@philosof.dk>
Date: Fri, 2 Mar 2012 11:13:55 +0100
Subject: [PATCH 2/2] Complain in tests about aliases not working for
alternative config files
Aliases does not work when set in a configuration file specified by the
GIT_CONFIG variable.
Signed-off-by: Rune Philosof <rune.git@philosof.dk>
---
t/t1300-repo-config.sh | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 81ccad5..433ef94 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -955,6 +955,17 @@ test_expect_success 'git -c works with aliases of
builtins' '
test_cmp expect actual
'
+test_expect_failure 'aliases work with alternative config' '
+ (
+ GIT_CONFIG=alias &&
+ export GIT_CONFIG &&
+ git config alias.altconfig "-c foo.check=bar config foo.check" &&
+ echo bar >expect &&
+ git altconfig >actual &&
+ test_cmp expect actual
+ )
+'
+
test_expect_success 'git -c does not split values on equals' '
echo "value with = in it" >expect &&
git -c core.foo="value with = in it" config core.foo >actual &&
--
1.7.5.4
[-- Attachment #2: S/MIME-signeret meddelelse --]
[-- Type: application/pkcs7-signature, Size: 2033 bytes --]
reply other threads:[~2012-03-02 11:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F50A83C.9090407@philosof.dk \
--to=rune@philosof.dk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).