* Do not add an empty value from config credential.helper
@ 2012-11-10 15:08 乙酸鋰
0 siblings, 0 replies; only message in thread
From: 乙酸鋰 @ 2012-11-10 15:08 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Below is current git message when a local config credential.helper has
an empty value. Please skip an empty value.
$ git push --force origin master
git: 'credential-' is not a git command. See 'git --help'.
Did you mean this?
credential
Total 0 (delta 0), reused 0 (delta 0)
To https://user@github.com/user/myrepo.git
+ d23aa6a...3405990 master -> master (forced update)
[-- Attachment #2: 0001-credential-do-not-recognize-a-credential-helper-if-c.patch --]
[-- Type: application/octet-stream, Size: 781 bytes --]
From 0b3ec07ed893a0d595cf48c55d884ff844f1108f Mon Sep 17 00:00:00 2001
From: Sup Yut Sum <ch3cooli@gmail.com>
Date: Sat, 10 Nov 2012 22:24:30 +0800
Subject: [PATCH] credential: do not recognize a credential helper if config
value is empty
Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
---
credential.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/credential.c b/credential.c
index e54753c..1489e7a 100644
--- a/credential.c
+++ b/credential.c
@@ -64,7 +64,7 @@ static int credential_config_callback(const char *var, const char *value,
key = dot + 1;
}
- if (!strcmp(key, "helper"))
+ if (!strcmp(key, "helper") && *value)
string_list_append(&c->helpers, value);
else if (!strcmp(key, "username")) {
if (!c->username)
--
1.8.0.msysgit.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-10 15:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-10 15:08 Do not add an empty value from config credential.helper 乙酸鋰
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).