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 <bert.wesarg@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Bert Wesarg committed
Nov 19, 2010 at 21:43 UTC
1ab862862fb985131ae081ddde4d8f8b7e23c17b
1 file changed
+1
-1
lib/browser.tcl
+1
-1
@@ -121,7 +121,7 @@ method _parent {} {
121
if {$browser_stack eq {}} {
122
regsub {:.*$} $browser_path {:} browser_path
123
} else {
124
- regsub {/[^/]+$} $browser_path {} browser_path
124
+ regsub {/[^/]+/$} $browser_path {/} browser_path
125
}
126
set browser_status [mc "Loading %s..." $browser_path]
127
_ls $this [lindex $parent 0] [lindex $parent 1]