From 9a49487d0a518ff6606f8089807ab5e1b5b2c57e Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 24 Feb 2011 15:58:29 +0530 Subject: [PATCH] minor bug in data format fixup code Earlier, it wasn't as critical for gl-setup to be run with the full path; the BINDIR deduction used to happen in almost every program. Now it's a lot more important. Apparently I never noticed that "/bin/bash -l gl-setup" does not set $0 to the correct, fq path. Adding a "-c" does, however... [thanks to Jeff from the KDE team for finding this] --- src/gitolite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 7a32b89..ab863b9 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -591,7 +591,7 @@ sub parse_acl unless (defined($data_version) and $data_version eq $current_data_version) { # this cannot happen for 'easy-install' cases, by the way... print STDERR "(INTERNAL: $data_version -> $current_data_version; running gl-setup)\n"; - system("$ENV{SHELL} -l gl-setup >&2"); + system("$ENV{SHELL} -l -c gl-setup >&2"); die "parse $GL_CONF_COMPILED failed: " . ($! or $@) unless do $GL_CONF_COMPILED; }