summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-22 07:22:51 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-05-22 07:22:51 (GMT)
commit306fc124621657234b21dce542496440d53147a6 (patch)
treee649abfd2ab8e52849a9e6d25b1e7276971c6c1e /git-gui.sh
parentb9e7efb8b5f7d424466dd1ce61fd20658f60543f (diff)
downloadgit-306fc124621657234b21dce542496440d53147a6.zip
git-306fc124621657234b21dce542496440d53147a6.tar.gz
git-306fc124621657234b21dce542496440d53147a6.tar.bz2
git-gui: Tighten internal pattern match for lib/ directory
Our GITGUI_LIBDIR macro was testing only for @@ at the start of the path, assuming nobody would ever find that to be a reasonable prefix for a directory to install our library into. That is most likely a valid assumption, but its even more unlikely they would have the start be @@GITGUI_ and the end be @@. Note that we cannot use the full string here because that would get expanded by the sed replacement in our Makefile. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 0a471a5..40f54e4 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
## configure our library
set oguilib {@@GITGUI_LIBDIR@@}
-if {[string match @@* $oguilib]} {
+if {[string match @@GITGUI_*@@ $oguilib]} {
set oguilib [file join [file dirname [file normalize $argv0]] lib]
}
set idx [file join $oguilib tclIndex]