aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Wesarg <bert.wesarg@googlemail.com>2010-11-19 21:43:48 +0100
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-11-22 21:52:51 +0000
commit1ab862862fb985131ae081ddde4d8f8b7e23c17b (patch)
tree8b09d8a7247023c5852364fee23ee7eb28ed863b
parent4590307a338b1a4912c7a203c71af8b8995ea885 (diff)
downloadgit-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.tcl2
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]