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

Re: git-gui Error

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Feb 13, 2007, 21:53 UTC
Message-ID
<20070213215303.GA26716@auto.tuwien.ac.at>
In-Reply-To
<20070213074519.GA32687@spearce.org>
On Tue, Feb 13, 2007 at 02:45:19AM -0500, Shawn O. Pearce wrote:
Show 33 quoted lines
> Martin Koegler <mkoegler@auto.tuwien.ac.at> wrote:
> > Starting git-gui without any parameters display an error message instead
> > of a usage message:
> 
> Starting it with no parameters (`git-gui` or `git gui`) should
> work just fine.  I do this all of the time on Mac OS X and Windows,
> as it opens a commit window and keeps it running.
>  
> > Error in startup script: child process exited abnormally
> >     while executing
> > "close $fd"
> >     (procedure "load_all_heads" line 11)
> >     invoked from within
> > "load_all_heads"
> >     invoked from within
> > "if {[is_enabled transport]} {
> >         load_all_remotes
> >         load_all_heads
> > 
> >         populate_branch_menu
> >         populate_fetch_menu
> >         populate_push_menu
> > }"
> 
> According to this backtrace, we were trying to startup the UI
> and load the branches, but:
> 
>   git for-each-ref --format=%(refname) refs/heads
> 
> returned a non-zero exit code or something else with it went wrong.
> Is this maybe a brand new repository?  This is most certainly a bug
> in git-gui, but I'd like to understand more about the environment
> so I can track it down.

My fault, I had only a too old GIT core (1.4.1) in my path. With the current version, the problem disapears.

Some notes about using git-gui: 
* Fetching over ssh results in an empty dialog. The password prompt is
only shown in the terminal window, which is likly to be hidden by the
the main window of git-gui.
* It there any reason, why tags are not included in the list of possible
merge sources in Merge/Local Merge?
It only needs one additional line in do_local_merge:
         set cmd [list git for-each-ref]
         lappend cmd {--format=%(objectname) %(refname)}
         lappend cmd refs/heads
         lappend cmd refs/remotes
+        lappend cmd refs/tags
         set fr_fd [open "| $cmd" r]
mfg Martin Kögler
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 11 in “git-gui Error”
  1. Martin KoeglerFeb 13, 2007
  2. Shawn O. PearceFeb 13, 2007
  3. Martin KoeglerFeb 13, 2007
  4. Shawn O. PearceFeb 14, 2007
  5. Shawn O. PearceFeb 14, 2007
  6. Martin KoeglerFeb 14, 2007
  7. Shawn O. PearceFeb 15, 2007
  8. Martin KoeglerFeb 15, 2007
  9. Shawn O. PearceFeb 15, 2007
  10. Martin KoeglerFeb 14, 2007
  11. Shawn O. PearceFeb 15, 2007

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.