Skip to content

Commit 9a1bead

Browse files
authored
back to direct comparison behavior for now (#57823)
1 parent 3a5a63d commit 9a1bead

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/actions/get-changed-files/get-changed-files.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ git fetch --depth=1 origin main
1818
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}
1919

2020
# Get diff with status information
21-
# Find the merge-base (common ancestor) instead of using origin/main directly
2221
echo "__ running git diff with status __"
23-
DIFF_OUTPUT=$(git diff --name-status origin/main...origin/${INPUT_HEAD:-HEAD})
22+
DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})
2423

2524
# Function to extract files by pattern from diff output
2625
extract_files() {

0 commit comments

Comments
 (0)