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

[PATCH 0/3] clone: respect configured fetch respecs during initial fetch

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Nov 14, 2018, 10:46 UTC
Message-ID
<20181114104620.32478-1-szeder.dev@gmail.com>

The initial fetch during a clone doesn't transfer refs matching additional fetch refspecs given on the command line as configuration variables, e.g. '-c remote.origin.fetch=<refspec>'. This contradicts the documentation stating that configuration variables specified via 'git clone -c <key>=<value> ...' "take effect immediately after the repository is initialized, but before the remote history is fetched" and the given example specifically mentions "adding additional fetch refspecs to the origin remote".

The second patch in this series makes it work. The other two are while-at-its: the first is a little cleanup, and the last one documents other known ignored configuration variables (but whose functionality is available through command line options).

This patch series should have been marked as v6, but I chose to reset the counter, because:

  - v5 was sent out way over a year ago [1], and surely everybody has
    forgotten about it since then anyway.  But more importantly:
  - A lot has happened since then, most notably we now have a refspec
    API, which makes this patch series much simpler (now it only
    touches 'builtin/clone.c', the previous version had to add stuff
    to 'remote.{c,h}' as well).
[1] For reference, though I actually doubt it's worth looking up:
    https://public-inbox.org/git/20170616173849.8071-1-szeder.dev@gmail.com/T/#u
SZEDER Gábor (3):
  clone: use a more appropriate variable name for the default refspec
  clone: respect additional configured fetch refspecs during initial
    fetch
  Documentation/clone: document ignored configuration variables
 Documentation/git-clone.txt |  6 +++++
 builtin/clone.c             | 33 +++++++++++++++-----------
 t/t5611-clone-config.sh     | 47 +++++++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 14 deletions(-)
-- 
2.19.1.1182.gbfcc7ed3e6
Next: SZEDER Gábor
Message 1 of 9 in “clone: respect configured fetch respecs during initial fetch”
  1. 0/3 clone: respect configured fetch respecs during initial fetchSZEDER Gábor, Nov 14, 2018
  2. 1/3 clone: use a more appropriate variable name for the default refspecSZEDER Gábor, Nov 14, 2018
  3. Jeff KingNov 15, 2018
  4. 2/3 clone: respect additional configured fetch refspecs during initial fetchSZEDER Gábor, Nov 14, 2018
  5. Jeff KingNov 15, 2018
  6. 3/3 Documentation/clone: document ignored configuration variablesSZEDER Gábor, Nov 14, 2018
  7. Jeff KingNov 15, 2018
  8. Jeff KingNov 15, 2018
  9. Junio C HamanoNov 16, 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.