summaryrefslogtreecommitdiff
path: root/version_detection.mk
diff options
context:
space:
mode:
authorchristindbose <[email protected]>2023-05-10 15:02:00 -0400
committerchristindbose <[email protected]>2023-05-10 15:02:00 -0400
commit1c1e446a803cc7ae5fa3fe78c7212e63cd25c12e (patch)
treea19fbe2a05e7ebcbc0d10e6c853b540ae919e877 /version_detection.mk
parentb98d7998283532e325cc7e35b5f3fc57040806b3 (diff)
parent0e83585519c0988df859aa58e0721d065fb82bf2 (diff)
Merge branch 'aerielvision_stuff' of https://github.com/christindbose/mgpu-gpgpu-sim_distribution into aerielvision_stuff
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)