Skip to content

Commit 306fc12

Browse files
committed
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 <[email protected]>
1 parent b9e7efb commit 306fc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
2525
## configure our library
2626

2727
set oguilib {@@GITGUI_LIBDIR@@}
28-
if {[string match @@* $oguilib]} {
28+
if {[string match @@GITGUI_*@@ $oguilib]} {
2929
set oguilib [file join [file dirname [file normalize $argv0]] lib]
3030
}
3131
set idx [file join $oguilib tclIndex]

0 commit comments

Comments
 (0)