git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: overriding/removing inherited credential.helper, Do not add an empty value from config credential.helper

From
Ted Zlatanov <tzz@lifelogs.com>
Date
Feb 7, 2013, 14:36 UTC
Message-ID
<87pq0cchsz.fsf@lifelogs.com>
In-Reply-To
<CAHtLG6QaHOOYgVFPyOWo44-jTX__cd0dCyu+vs+Uf4_U-HxySw@mail.gmail.com>
On Sat, 10 Nov 2012 23:12:50 +0800 乙酸鋰 <ch3cooli@gmail.com> wrote: 
> In credential.c, line 67:
>     if (!strcmp(key, "helper"))
>	  string_list_append(&c->helpers, value);
Show 5 quoted lines
> In global config, I add one credential helper.
> But I do not want to use any credential helper in a specific repository.
> Currently there is no way in local config to override and remove
> inherited credential helper.
> Of course, I do not want to change global config.
> Could you suggest a patch?
On Sat, 10 Nov 2012 23:08:04 +0800 乙酸鋰 <ch3cooli@gmail.com> wrote: 
> 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'.
Show 5 quoted lines
> 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)

I would like that too (needed it today). Maybe the empty string (as suggested) or "none" could be acceptable.

"none" seems friendlier and is very unlikely to collide with an actual credential helper.

Ted
Previous: 乙酸鋰Next: Junio C Hamano
Message 2 of 4 in “overriding/removing inherited credential.helper”
  1. 乙酸鋰Nov 10, 2012
  2. Ted ZlatanovFeb 7, 2013
  3. Junio C HamanoFeb 7, 2013
  4. Ted ZlatanovFeb 7, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.