Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/modules/GitInfo.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get the current commit ref
if(NOT GIT_DESCRIBE)
execute_process(
COMMAND git describe --tags --always --dirty=-modified
COMMAND git describe --tags --always --first-parent --dirty=-modified
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
OUTPUT_VARIABLE GIT_DESCRIBE
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand Down
8 changes: 7 additions & 1 deletion tools/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ def git_info(info, path="."):
elif info == "describe":
# A dirty git state should only be possible on local builds, but since
# this script may be used locally we'll add it here.
cmd = ("git", "describe", "--always", "--dirty=-modified")
cmd = (
"git",
"describe",
"--always",
"--first-parent",
"--dirty=-modified",
)
else:
raise ValueError("Invalid git info type!")

Expand Down