Hi,

It seems that git gui doesn't like multiple remotes without a "fetch =
" line. Having just one remote with no "fetch =" line is OK. Having
more than one bombs, though adding "fetch =" to just one of them seems
to work. It's easy to reproduce:

lasse@plystrofyf:/tmp$ mkdir test.git
lasse@plystrofyf:/tmp$ cd test.git/
$ git init
Initialized empty Git repository in /tmp/test.git/.git/
$ echo '[remote "a"]' >>.git/config
$ echo 'url = ssh://a/b/c.git' >>.git/config
$ git gui
$ # happy git gui :-)
$ echo '[remote "b"]' >>.git/config
$ echo 'url = ssh://d/e/f.git' >>.git/config
$ git gui
Error in startup script: unknown option "-label"
    while executing
"$fetch_m entrycget end -label"
    (procedure "update_all_remotes_menu_entry" line 16)
    invoked from within
"update_all_remotes_menu_entry"
    (procedure "populate_remotes_menu" line 9)
    invoked from within
"populate_remotes_menu"
    invoked from within
"if {[is_enabled transport]} {
        load_all_remotes

        set n [.mbar.remote index end]
        populate_remotes_menu
        set n [expr {[.mbar.remote index end] - $n}]
..."
    (file "/usr/lib/git-core/git-gui" line 3824)
$ # sad git gui :-(
$ echo 'fetch =' >>.git/config
$ git gui
$ # happy git gui :-)

This is with v1.7.12-rc1-16-g05a20c8 (current master as if this writing)

/Lasse
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to