Skip to content

Commit e5143b0

Browse files
jmbergkuba-moo
authored andcommitted
tests: kernel-doc: handle pull requests better
For pull requests, it only tests files changed during the merge commit itself, which is a bit weird, especially as the automatic merge won't be able to resolve conflicts. Use "git diff" instead of "git show" to build the list of changed files. Signed-off-by: Johannes Berg <[email protected]>
1 parent 6de590e commit e5143b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/patch/kdoc/kdoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tmpfile_o=$(mktemp)
88
tmpfile_n=$(mktemp)
99
rc=0
1010

11-
files=$(git show --pretty="" --name-only HEAD)
11+
files=$(git diff HEAD^ --pretty= --name-only)
1212

1313
HEAD=$(git rev-parse HEAD)
1414

0 commit comments

Comments
 (0)