Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:05

Ted Zlatanov [off-list ref] writes:
quoted
Below is current git message when a local config credential.helper has
an empty value. Please skip an empty value.
quoted
$ git push --force origin master
git: 'credential-' is not a git command. See 'git --help'.
Did you mean this?
  credential
Why isn't "do not add empty string, or any random string that ends
up referring to a helper that you do not have" a solution?
quoted
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.
Whatever you do, I do not think introducing a per-variable hack

	[credential]
        	helper = none ;# or "helper = clear"
                helper = mine ;# this is the only thing I use

like that is a sane way to go.  "Clear everything you saw so far"
would be useful for variables other than "credential.helper";
shouldn't it be done by adding a general syntax to the configuration
file format and teach the configuration parser to clear the
cumulative definitions so far?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help