git-publish icon indicating copy to clipboard operation
git-publish copied to clipboard

Doesn't respect git -c x=y configuration overrides

Open dgibson opened this issue 5 years ago • 1 comments

When invoked as a git subcommand, git-publish won't respect configuration overrides given on the git command line with the -c option. e.g.

git -c sendemail.smtpserver=smtp.example.com publish ...

Will still use the normal default smtp server, rather than the one given on the comand line.

I use a wrapper script with a bunch of -c overrides to distinguish between my upstream and downstream workflows, which makes it difficult to use git publish.

dgibson avatar Feb 19 '20 04:02 dgibson

Please retry with git -c ... publish --verbose and post the output.

I verified that git -c ... publish sets the GIT_CONFIG_PARAMETERS environment variable and that git-publish child processes inherit that environment variable. It's not clear to me why this isn't working and the verbose output from git-publish might help. Thanks!

stefanha avatar Feb 23 '20 16:02 stefanha