From 1ab862862fb985131ae081ddde4d8f8b7e23c17b Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Fri, 19 Nov 2010 21:43:48 +0100 Subject: [PATCH] git-gui: fix browsers [Up To Parent] in sub-sub-directories. browser_path used to end with a slash, so the regexp matches the empty string and therefore removes nothing. Fix this. Signed-off-by: Bert Wesarg Signed-off-by: Pat Thoyts --- lib/browser.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser.tcl b/lib/browser.tcl index c2415729e..a8c622351 100644 --- a/lib/browser.tcl +++ b/lib/browser.tcl @@ -121,7 +121,7 @@ method _parent {} { if {$browser_stack eq {}} { regsub {:.*$} $browser_path {:} browser_path } else { - regsub {/[^/]+$} $browser_path {} browser_path + regsub {/[^/]+/$} $browser_path {/} browser_path } set browser_status [mc "Loading %s..." $browser_path] _ls $this [lindex $parent 0] [lindex $parent 1] -- 2.30.2