From ad3dc617600fd01b39c3cd8cfffdfb6099f757ef Mon Sep 17 00:00:00 2001
From: Olgun Cengiz <olgun.cengiz@vereign.com>
Date: Thu, 22 Nov 2018 12:24:24 +0300
Subject: [PATCH] updated Makefile

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 46b3fdb..e084551 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@ SERVER_OUT := "bin/server"
 PKG := "code.vereign.com/code/key-storage-agent"
 SERVER_PKG_BUILD := "${PKG}"
 PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
-BRANCH := $(shell git branch | grep \* | cut -d ' ' -f2)
-COMMIT := $(shell git branch | git describe --always --long --dirty)
+BRANCH := $(shell git show -s --pretty=%d HEAD)
+COMMIT := $(shell git describe --always --long --dirty)
 VER := $(BRANCH).$(COMMIT)
 
 .PHONY: all api server
-- 
GitLab