Skip to content

Commit 8c91929

Browse files
committed
avoid ambiguous path
1 parent 01db2d7 commit 8c91929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.kokoro/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function generate_modified_modules_list() {
161161
# grep returns 1 (error code) and exits the pipeline if there is no match
162162
# If there is no match, it will return true so the rest of the commands can run
163163
git config --global --add safe.directory $(realpath .)
164-
modified_files=$(git diff --name-only "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}")
164+
modified_files=$(git diff --name-only \
165+
"origin/${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}" --)
165166
printf "Modified files:\n%s\n" "${modified_files}"
166167

167168
# Generate the list of valid maven modules

0 commit comments

Comments
 (0)