Skip to content

Commit 516bf45

Browse files
committed
t1016: make sure to use specified GPG
c348192 (t1016: clean up style, 2024-10-22) fixed a coding style violation that has an extra space between redirection operator ">" and the redirection target, but at the same time, replaced the use of "git config" to set a configuration variable to be used by the remainder of tests with "test_config". The pattern employed here is that the first set-up test prepares the environment to be used by subsequent tests, which then use the settings left by this set-up test to perform their tasks. Using test_config in the first set-up test means the config setting made by the set-up test is reverted at the end of the first set-up test, which totally misses the point. Go back to use "git config" to fix this. Signed-off-by: Junio C Hamano <[email protected]>
1 parent c348192 commit 516bf45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1016-compatObjectFormat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ do
116116
git config core.repositoryformatversion 1 &&
117117
git config extensions.objectformat $hash &&
118118
git config extensions.compatobjectformat $(compat_hash $hash) &&
119-
test_config gpg.program $TEST_DIRECTORY/t1016/gpg &&
119+
git config gpg.program $TEST_DIRECTORY/t1016/gpg &&
120120
echo "Hello World!" >hello &&
121121
eval hello_${hash}_oid=$(git hash-object hello) &&
122122
git update-index --add hello &&

0 commit comments

Comments
 (0)