Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-06 03:40:45 +0300
committerJunio C Hamano <gitster@pobox.com>2021-02-06 03:40:45 +0300
commit61b159e219ebce235d74638ec98c577f4b9c8488 (patch)
tree31a827944e766bb73b383039c5f8e14d3cd766f6 /t/annotate-tests.sh
parent4cc0e8794d7e36044d3ae0abc692b5d8958f5d41 (diff)
parent6eaf624dea685f3d61815efeb31d7ff06197330c (diff)
Merge branch 'pb/blame-funcname-range-userdiff'
Test fix. * pb/blame-funcname-range-userdiff: annotate-tests: quote variable expansions containing path names
Diffstat (limited to 't/annotate-tests.sh')
-rw-r--r--t/annotate-tests.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh
index ee5d2d4cf8..29ce89090d 100644
--- a/t/annotate-tests.sh
+++ b/t/annotate-tests.sh
@@ -483,12 +483,12 @@ test_expect_success 'setup -L :funcname with userdiff driver' '
echo "fortran-* diff=fortran" >.gitattributes &&
fortran_file=fortran-external-function &&
orig_file="$TEST_DIRECTORY/t4018/$fortran_file" &&
- cp $orig_file . &&
- git add $fortran_file &&
+ cp "$orig_file" . &&
+ git add "$fortran_file" &&
GIT_AUTHOR_NAME="A" GIT_AUTHOR_EMAIL="A@test.git" \
git commit -m "add fortran file" &&
- sed -e "s/ChangeMe/IWasChanged/" <"$orig_file" >$fortran_file &&
- git add $fortran_file &&
+ sed -e "s/ChangeMe/IWasChanged/" <"$orig_file" >"$fortran_file" &&
+ git add "$fortran_file" &&
GIT_AUTHOR_NAME="B" GIT_AUTHOR_EMAIL="B@test.git" \
git commit -m "change fortran file"
'