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

Re: [PATCH] builtin/send-pack: populate the default configs

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 12, 2018, 18:16 UTC
Message-ID
<20180612181624.GB28554@aiede.svl.corp.google.com>
In-Reply-To
<20180612172623.165420-1-masayasuzuki@google.com>
Hi,
Masaya Suzuki wrote:
Show 8 quoted lines
> builtin/send-pack didn't call git_default_config, and because of this
> git push --signed didn't respect the username and email in gitconfig in
> the HTTP transport.
>
> Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
> ---
>  builtin/send-pack.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Do you have a set of commands I can run to reproduce this? Bonus points if they're in the form of a patch to t/, but commands I can manually run would be fine, too.

Show 8 quoted lines
> --- a/builtin/send-pack.c
> +++ b/builtin/send-pack.c
> @@ -121,7 +121,7 @@ static int send_pack_config(const char *k, const char *v, void *cb)
>  			}
>  		}
>  	}
> -	return 0;
> +	return git_default_config(k, v, cb);

send-pack is not a command served by a daemon so this is less potentially scary than the corresponding potential change to upload-pack or receive-pack. Some configuration this brings in:

- core.askpass: allows specifying an arbitrary command to use to
  ask for a password.  Respecting this setting should be very useful,
  even if it would be scary in a daemon.
- core.pager: allows specifying an arbitrary command to use as a
  pager, if pagination is on (but it shouldn't be on).
- core.logallrefupdates: whether to create reflogs for new refs
  (including new remote-tracking refs). Good.
- core.abbrev: what length of abbreviations to use when printing
  abbreviated object ids (good).
- core.compression, core.packedgitwindowsize, etc: pack generation
  tunables (good).
- advice.*: would allow us to make "git push" produce configurable
  advice (good!)
- etc
So it looks like a very good change.  Thanks for writing it.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Previous: Stefan BellerNext: Eric Sunshine
Message 7 of 8 in “builtin/send-pack: populate the default configs”
  1. builtin/send-pack: populate the default configsMasaya Suzuki, Jun 12, 2018
  2. Junio C HamanoJun 12, 2018
  3. builtin/send-pack: report gpg config errorsStefan Beller, Jun 12, 2018
  4. Eric SunshineJun 12, 2018
  5. Jonathan NiederJun 12, 2018
  6. Stefan BellerJun 12, 2018
  7. Jonathan NiederJun 12, 2018
  8. Eric SunshineJun 12, 2018

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.