From 20313cb0a5c1d4a827a9ce020a62cf327d73c6a4 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Mon, 21 Mar 2016 13:47:13 -0700 Subject: [PATCH] Add missing GIT_BRANCH variable to Makefile Signed-off-by: Kenfe-Mickael Laventure --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8a57a47..39b1928 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ BUILDTAGS= GIT_COMMIT := $(shell git rev-parse HEAD 2> /dev/null || true) +GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null) LDFLAGS := -X github.com/docker/containerd.GitCommit=${GIT_COMMIT} ${LDFLAGS}