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

Re: [PATCH] git-send-pack: Fix --all option when used with directory

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2016, 16:11 UTC
Message-ID
<xmqqpoujama8.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1458750262-25765-1-git-send-email-stanislav@assembla.com>
Stanislav Kolotinskiy <stanislav@assembla.com> writes:
> Subject: Re: [PATCH] git-send-pack: Fix --all option when used with directory

Please see "git shortlog --no-merges" output from recent history and notice that s/Fix/fix/ would make things more consistent.

Show 8 quoted lines
> When using git send-pack with --all option and a target directory,
> usage message is being displayed instead of performing the actual
> transmission.
>
> The reason for this issue is that refspecs variable is being
> calculated in a different way comparing to previous versions, and
> even though the number of refspecs (nr_refspecs) is 0, refspecs
> contain all the arguments and switches passed to send-pack.

Thanks for noticing; the above explanation however does not make it very clear why the symptom exhibits itself only when "directory" is given (it also is unclear if "target" being a directory is special, or if any remote repository specification, e.g. host:/path/to/dir, triggers the same problem).

Previous: Stanislav KolotinskiyNext: Stanislav Kolotinskiy
Message 7 of 10 in “git-send-pack: Fix --all option when used with directory”
  1. git-send-pack: Fix --all option when used with directoryStanislav Kolotinskiy, Mar 23, 2016
  2. Jeff KingMar 23, 2016
  3. Jeff KingMar 23, 2016
  4. Stanislav KolotinskiyMar 24, 2016
  5. Jeff KingMar 24, 2016
  6. Stanislav KolotinskiyMar 24, 2016
  7. Junio C HamanoMar 24, 2016
  8. Stanislav KolotinskiyMar 24, 2016
  9. Jeff KingMar 24, 2016
  10. Stanislav KolotinskiyApr 1, 2016

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.