Skip to content

Commit 9bba6a3

Browse files
committed
git diff HEAD@{1} does not return the modified files in the current commit
1 parent 51b84e4 commit 9bba6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/get-updated-distros.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
44

55
# Get the *.adoc and distro maps files in the pull request
6-
FILES=$(git diff --name-only HEAD@{1} --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
6+
FILES=$(git diff --name-only HEAD~1 HEAD --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
77

88
REPO_PATH=$(git rev-parse --show-toplevel)
99

0 commit comments

Comments
 (0)