From: Jonathan Nieder Date: Sun, 04 Jul 2010 21:21:25 GMT Subject: [PATCH git-gui] git-gui--askpass: Do not hang on exit Message-ID: <20100704212125.GA1613@burratino> In-Reply-To: <20100704203342.6064.32250.reportbug@balanced-tree> Anders Kaseorg wrote: > When git-gui--askpass is manually copied from the source into > /usr/lib/git-core, though, it doesn’t particularly work; its window > just freezes after the password is typed. The problem seems to be the bind . {exit $::rc} line; apparently each exit causes the window to be destroyed again, resulting in git gui hanging. Reported-by: Anders Kaseorg Signed-off-by: Jonathan Nieder --- diff --git a/git-gui--askpass b/git-gui--askpass index 12e117e..1537f75 100755 --- a/git-gui--askpass +++ b/git-gui--askpass @@ -39,7 +39,7 @@ pack .b -side bottom -fill x -padx 10 -pady 10 bind . {focus -force .e} bind . finish bind . {destroy .} -bind . {exit $rc} +bind . {exit $::rc} proc finish {} { if {$::yesno} { @@ -52,7 +52,9 @@ proc finish {} { set ::rc 0 puts $::answer + bind . {} destroy . + exit 0 } wm title . "OpenSSH" --