Skip to content

Commit d77fd05

Browse files
seveasgitster
authored andcommitted
tests: allow sha1's as part of the path
When running 'make test' from a path such as .../daily-build/master@bdff0e3a374617dce784f801b97500d9ba2e4705, the logic in fuzz.sed as generated by t5105-request-pull.sh was backwards, replacing object names before replacing urls, making the test fail. Signed-off-by: Dennis Kaarsemaker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 04a74b6 commit d77fd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5150-request-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ test_expect_success 'setup: two scripts for reading pull requests' '
8080
8181
cat <<-EOT >fuzz.sed
8282
#!/bin/sed -nf
83+
s/$downstream_url_for_sed/URL/g
8384
s/$_x40/OBJECT_NAME/g
8485
s/A U Thor/AUTHOR/g
8586
s/[-0-9]\{10\} [:0-9]\{8\} [-+][0-9]\{4\}/DATE/g
8687
s/ [^ ].*/ SUBJECT/g
8788
s/ [^ ].* (DATE)/ SUBJECT (DATE)/g
88-
s/$downstream_url_for_sed/URL/g
8989
s/for-upstream/BRANCH/g
9090
s/mnemonic.txt/FILENAME/g
9191
s/^version [0-9]/VERSION/

0 commit comments

Comments
 (0)