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

Re: gui: error "missing close bracket" when doing a reset

From
PYPratyush Yadav <p.yadav@ti.com>
Date
Mar 11, 2020, 07:35 UTC
Message-ID
<20200311073535.nwde2ujbsrslmggo@ti.com>
In-Reply-To
<CAGr--=L9nEfX1c6DnaqQHqNMh9Ci=q=dMZLE_gpgyoneBcJ_Kw@mail.gmail.com>
On 08/03/20 04:52PM, Birger Skogeng Pedersen wrote:
Show 32 quoted lines
> Hi,
> 
> The last couple of times I've done a reset in git-gui
> (Branch->Reset...->Yes), the repo is reset but I get an error message.
> The message header says "Error: missing close-bracket". Error message
> is as follows:
> 
> missing close-bracket
> missing close-bracket
>     while executing
> "set status_bar_operation ["
>     invoked from within
> "if {[ask_popup $op_question] eq {yes}} {
>         set fd [git_read --stderr read-tree --reset -u -v HEAD]
>         fconfigure $fd -blocking 0 -translation binary
>         ..."
>     (procedure "merge::reset_hard" line 28)
>     invoked from within
> "merge::reset_hard"
>     invoked from within
> ".#mbar.#mbar#branch invoke active"
>     ("uplevel" body line 1)
>     invoked from within
> "uplevel #0 [list $w invoke active]"
>     (procedure "tk::MenuInvoke" line 50)
>     invoked from within
> "tk::MenuInvoke .#mbar.#mbar#branch 1"
>     (command bound to event)
> 
> (end of error message)
> 
> Does anyone else experience the same issue?

I fixed a similar issue in 6b9919c (git-gui: add missing close bracket, 2020-02-17). Do you have that commit applied? You can pull it from [0].

If you still have this problem even with the commit applied, let me know and I'll take a look after I get off from $DAYJOB.

[0] https://github.com/prati0100/git-gui.git
-- 
Regards,
Pratyush Yadav
Texas Instruments India
Previous: Birger Skogeng Pedersen
Message 2 of 2 in “gui: error "missing close bracket" when doing a reset”
  1. Birger Skogeng PedersenMar 8, 2020
  2. Pratyush YadavMar 11, 2020

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.