summaryrefslogtreecommitdiff
path: root/version_detection.mk
diff options
context:
space:
mode:
authorJRPan <[email protected]>2023-05-10 14:46:22 -0400
committerGitHub <[email protected]>2023-05-10 14:46:22 -0400
commitde83af2df6a70d7963b07e39c264515a399049d9 (patch)
tree787ac125ba43d11dc334b95c10c2b788ff939683 /version_detection.mk
parentb22122ab03365b0570a034b95876df4f83295c78 (diff)
parent948c0e1a0e379e37e60c83b9ab622217522aea86 (diff)
Merge branch 'dev' into dev
Diffstat (limited to 'version_detection.mk')
-rw-r--r--version_detection.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/version_detection.mk b/version_detection.mk
index ee71a62..81c1d2a 100644
--- a/version_detection.mk
+++ b/version_detection.mk
@@ -32,7 +32,7 @@ else
GPGPUSIM_VERSION=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Version/ {print $$8}' )
#Detect Git branch and commit #
-GIT_COMMIT := $(shell git log -n 1 | head -1 | sed -re 's/commit (.*)/\1/')
+GIT_COMMIT := $(shell git log --abbrev-commit -n 1 | head -1 | sed -re 's/commit (.*)/\1/')
GIT_FILES_CHANGED_A:=$(shell git diff --numstat | wc | sed -re 's/^\s+([0-9]+).*/\1./')
GIT_FILES_CHANGED:= $(GIT_FILES_CHANGED_A)$(shell git diff --numstat --cached | wc | sed -re 's/^\s+([0-9]+).*/\1/')
GPGPUSIM_BUILD := gpgpu-sim_git-commit-$(GIT_COMMIT)_modified_$(GIT_FILES_CHANGED)