diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2010-11-19 21:43:48 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-11-22 21:52:51 +0000 |
commit | 1ab862862fb985131ae081ddde4d8f8b7e23c17b (patch) | |
tree | 8b09d8a7247023c5852364fee23ee7eb28ed863b | |
parent | 4590307a338b1a4912c7a203c71af8b8995ea885 (diff) | |
download | git-1ab862862fb985131ae081ddde4d8f8b7e23c17b.tar.gz git-1ab862862fb985131ae081ddde4d8f8b7e23c17b.tar.xz |
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>
-rw-r--r-- | lib/browser.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
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] |