Skip to content

Commit

Permalink
Use git diff instead of git diff-index
Browse files Browse the repository at this point in the history
Somehow git diff-index sees all files as changed for flatpak builds.
  • Loading branch information
bvschaik committed Mar 22, 2024
1 parent 7599749 commit ef1547d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ elseif (EXISTS "${CMAKE_SOURCE_DIR}/.git")
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND git diff-index --quiet HEAD --
COMMAND git diff --quiet HEAD --
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE VERSION_COMMIT_DIRTY
)
Expand Down

0 comments on commit ef1547d

Please sign in to comment.