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

Re: cygwin git and golang: how @{u} is handled

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jan 21, 2018, 18:55 UTC
Message-ID
<87372zhwiw.fsf@evledraar.gmail.com>
In-Reply-To
<CAJzZBAQuOqwRmBLOdUEVMY74_xT2dWe3a+9qT9ufc4bp8gjgig@mail.gmail.com>
On Sun, Jan 21 2018, John Cheng jotted:
> Actual result:
> Suppose that cygwin git is specified, the result becomes:
> exit status 128 fatal: ambiguous argument '@u': unknown revision or
> path not in the working tree.
Given that:
    $ git log @{x}
    fatal: ambiguous argument '@{x}': unknown revision or path not in the working tree.

Spews the output back at you as @{x} not @x the problem must be in whatever is passing the argument to git, whether that's go or some other wrapper.

Try putting a "git" first in your $PATH which is nothing but:
    #!/bin/sh
    echo "args: $@"
    exit 1
And seeing what you get.
Previous: John ChengNext: Philip Oakley
Message 2 of 4 in “cygwin git and golang: how @{u} is handled”
  1. John ChengJan 21, 2018
  2. Ævar Arnfjörð BjarmasonJan 21, 2018
  3. Philip OakleyJan 21, 2018
  4. John ChengJan 22, 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.