Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Ask for a url through cgit_url everywhere
Diffstat (limited to 'tests/t0108-rawdiff.sh')
-rwxr-xr-xtests/t0108-rawdiff.sh8
1 file changed, 4 insertions, 4 deletions
diff --git a/tests/t0108-rawdiff.sh b/tests/t0108-rawdiff.sh
index 3d910d3..500407f 100755
--- a/tests/t0108-rawdiff.sh
+++ b/tests/t0108-rawdiff.sh
@@ -8,7 +8,7 @@ test_description='Check content on rawdiff page'
. ./setup.sh
test_expect_success 'generate foo/rawdiff' '
- cgit_query "url=foo/rawdiff" >tmp
+ cgit_url "foo/rawdiff" >tmp
'
test_expect_success 'compare with output of git-diff(1)' '
@@ -22,7 +22,7 @@ test_expect_success 'find initial commit' '
'
test_expect_success 'generate diff for initial commit' '
- cgit_query "url=foo/rawdiff&id=$root" >tmp
+ cgit_url "foo/rawdiff&id=$root" >tmp
'
test_expect_success 'compare with output of git-diff-tree(1)' '
@@ -34,7 +34,7 @@ test_expect_success 'compare with output of git-diff-tree(1)' '
test_expect_success 'generate diff for multiple commits' '
id=$(git --git-dir="$PWD/repos/foo/.git" rev-parse HEAD) &&
id2=$(git --git-dir="$PWD/repos/foo/.git" rev-parse HEAD~3) &&
- cgit_query "url=foo/rawdiff&id=$id&id2=$id2" >tmp
+ cgit_url "foo/rawdiff&id=$id&id2=$id2" >tmp
'
test_expect_success 'compare with output of git-diff(1)' '
@@ -44,7 +44,7 @@ test_expect_success 'compare with output of git-diff(1)' '
'
test_expect_success 'a path limits the diff to that file' '
- cgit_query "url=foo/rawdiff/file-4&id=$id&id2=$id2" >tmp &&
+ cgit_url "foo/rawdiff/file-4&id=$id&id2=$id2" >tmp &&
git --git-dir="$PWD/repos/foo/.git" diff HEAD~3..HEAD -- file-4 >tmp2 &&
strip_headers <tmp >tmp_ &&
cmp tmp_ tmp2 &&