From a690058ce638a0dcc9c531923bd9d5fe99b3099a Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sat, 6 Nov 2010 10:46:44 +0530 Subject: [PATCH] (test driver) editrc function buglet Till now I did not have an RC var whose name was a prefix of another valid RC var, so I never noticed that editrc would set the longer one also when you set the shorter one. Fixed --- t/test-driver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/test-driver.sh b/t/test-driver.sh index d634b39..5d03753 100755 --- a/t/test-driver.sh +++ b/t/test-driver.sh @@ -36,7 +36,7 @@ capture() { cf=$1; shift; "$@" >& $TESTDIR/$cf; } editrc() { scp gitolite-test@localhost:.gitolite.rc ~/junk >/dev/null - perl -pi -e "print STDERR if not /^#/ and /$1/ and s/=.*/= $2;/" ~/junk + perl -pi -e "print STDERR if not /^#/ and /$1\b/ and s/=.*/= $2;/" ~/junk scp ~/junk gitolite-test@localhost:.gitolite.rc >/dev/null }