{"thread":{"id":"31168","subject":"git gui chokes on multiple remotes without \"fetch = \"","startedAt":"2012-08-02T08:26:07Z","lastAt":"2012-08-02T08:26:07Z","messageCount":1,"participants":["Lasse Makholm"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"196323","messageId":"CAB7pA0_M_UtXZ_Rtg-zqvQmMvgUu9QH2VGNOMwnv8Yk11EYJHg@mail.gmail.com","threadId":"31168","inReplyTo":null,"subject":"git gui chokes on multiple remotes without \"fetch = \"","fromName":"Lasse Makholm","fromEmail":"lasse.makholm@gmail.com","sentAt":"2012-08-02T08:26:07Z","receivedAt":"2012-08-02T08:26:07Z","isPatch":false,"sender":{"key":"lasse.makholm@gmail.com","avatar":"https://gravatar.com/avatar/5bc3a34e4fa8ba26b38c333f370b15c034351e18e09b056a2608f3904ae1a4c1?d=mp&s=160"},"body":"Hi,\n\nIt seems that git gui doesn't like multiple remotes without a \"fetch =\n\" line. Having just one remote with no \"fetch =\" line is OK. Having\nmore than one bombs, though adding \"fetch =\" to just one of them seems\nto work. It's easy to reproduce:\n\nlasse@plystrofyf:/tmp$ mkdir test.git\nlasse@plystrofyf:/tmp$ cd test.git/\n$ git init\nInitialized empty Git repository in /tmp/test.git/.git/\n$ echo '[remote \"a\"]' >>.git/config\n$ echo 'url = ssh://a/b/c.git' >>.git/config\n$ git gui\n$ # happy git gui :-)\n$ echo '[remote \"b\"]' >>.git/config\n$ echo 'url = ssh://d/e/f.git' >>.git/config\n$ git gui\nError in startup script: unknown option \"-label\"\n    while executing\n\"$fetch_m entrycget end -label\"\n    (procedure \"update_all_remotes_menu_entry\" line 16)\n    invoked from within\n\"update_all_remotes_menu_entry\"\n    (procedure \"populate_remotes_menu\" line 9)\n    invoked from within\n\"populate_remotes_menu\"\n    invoked from within\n\"if {[is_enabled transport]} {\n\tload_all_remotes\n\n\tset n [.mbar.remote index end]\n\tpopulate_remotes_menu\n\tset n [expr {[.mbar.remote index end] - $n}]\n...\"\n    (file \"/usr/lib/git-core/git-gui\" line 3824)\n$ # sad git gui :-(\n$ echo 'fetch =' >>.git/config\n$ git gui\n$ # happy git gui :-)\n\nThis is with v1.7.12-rc1-16-g05a20c8 (current master as if this writing)\n\n/Lasse\n"}]}