From 44b13c1ca08c31289c2509d6626aa8bc56b601b6 Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 22 Nov 2017 01:02:02 +0100 Subject: [PATCH] Subversion fallback If you use don't use Git to access the repository, you will still get a revision number. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 8b41ceb9c..b70a3ffab 100644 --- a/src/Makefile +++ b/src/Makefile @@ -55,7 +55,7 @@ endif ifdef GIT_SHA $(info GIT_SHA: $(GIT_SHA)) else - GIT_SHA := $(shell git rev-parse --short HEAD 2>$(NULLDEV)) + GIT_SHA := $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion -n) ifneq ($(words $(GIT_SHA)),1) GIT_SHA := N/A $(info GIT_SHA: N/A) -- 2.39.5