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

Re: fatal: BUG: dashless options don't support arguments

From
Jeff King <peff@peff.net>
Date
Oct 8, 2010, 04:11 UTC
Message-ID
<20101008041100.GA3272@sigill.intra.peff.net>
In-Reply-To
<20101008031818.GC992@burratino>
On Thu, Oct 07, 2010 at 10:18:18PM -0500, Jonathan Nieder wrote:
Show 14 quoted lines
> > Ki:$ git checkout master
> > fatal: BUG: dashless options don't support arguments
> 
> Strange indeed.  Here's what I would suggest:
> 
> 1. For debugging output:
> 
>  $ echo 'prefix=/usr/local' >>config.mak; # or whatever prefix you use
>  $ git describe
>  $ gcc --version
>  $ wget 'http://download.gmane.org/gmane.comp.version-control.git/128067/128068'
>  $ git am -3 128068
>  $ make
>  $ bin-wrappers/git checkout m

Yeah, I would be curious to see the output of that. Interesting, too, that it seems to happen with multiple commands (it looked like it happened with "git push foo" in the pastebin from the irc log).

> 2. To track down the issue, if you like to read assembler:
> 
>  $ make builtin/checkout.s
>  $ vi checkout.s

Ugh. I think a better course of action is to find out which option is being munged (from step 1 above), and then try running it under gdb with a watch set on that option struct. Assuming it's easily reproducible of course.

-Peff
Previous: Jonathan NiederNext: Johannes Sixt
Message 3 of 4 in “Re: fatal: BUG: dashless options don't support arguments”
  1. Brian ZitzowOct 8, 2010
  2. Jonathan NiederOct 8, 2010
  3. Jeff KingOct 8, 2010
  4. Johannes SixtOct 8, 2010

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.