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

Bug: "git-remote ls -h"

From
IWIan Whitlock <ian@theknown.net>
Date
Jun 29, 2022, 15:26 UTC
Message-ID
<d2a7caa9-e2ba-457d-9fe9-92b29b5ee47a@www.fastmail.com>
Hi,

I found a bug and couldn't find another way to report it. I hope this is okay. The help output for `git ls-remote` shows that `-h` should display remote HEADs, but instead the help output is displayed!

 ➜ git ls-remote -h     
usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]
                     [-q | --quiet] [--exit-code] [--get-url]
                     [--symref] [<repository> [<refs>...]]
    -q, --quiet           do not print remote URL
    --upload-pack <exec>  path of git-upload-pack on the remote host
    -t, --tags            limit to tags
    -h, --heads           limit to heads
    --refs                do not show peeled tags
    --get-url             take url.<base>.insteadOf into account
    --sort <key>          field name to sort on
    --exit-code           exit with exit code 2 if no matching refs are found
    --symref              show underlying ref in addition to the object pointed by it
    -o, --server-option <server-specific>
                          option to transmit
Small bug, but a bug nonetheless.
Thanks for building such a lovely tool
Next: Eric Sunshine
Message 1 of 3 in “Bug: "git-remote ls -h"”
  1. Ian WhitlockJun 29, 2022
  2. Eric SunshineJun 29, 2022
  3. Junio C HamanoJun 30, 2022

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.