Skip to content

Commit

Permalink
(test driver) editrc function buglet
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sitaramc committed Nov 6, 2010
1 parent 0be96f7 commit a690058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/test-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a690058

Please sign in to comment.