From 236541d379e8d3ab815a80fa81de3a8ec1f1e267 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 14 Jun 2019 09:36:52 -0700 Subject: [PATCH] minor fixes to autobuild Signed-off-by: Jeff Carr --- autobuild/autobuild.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autobuild/autobuild.go b/autobuild/autobuild.go index a935dfe..b270ba6 100644 --- a/autobuild/autobuild.go +++ b/autobuild/autobuild.go @@ -88,12 +88,12 @@ func build(tag string) *bool { shell.Run("git checkout v" + tag) gitref := shell.Run("git rev-list -1 HEAD") - tagref := shell.Run("cat .git/refs/tags/v" + tag) // what is the right way? + tagref := shell.Run("git rev-list -1 v" + tag) if (gitref != tagref) { - log.Println("\tJESUS HOW TO DO THIS CORRECTLY?", gitref, "ne", tagref) - // os.Exit(-1) - // return nil + log.Println("\tWHAT WENT WRONG?", gitref, "ne", tagref) + b = false + return &b } // setup the files that will end up in the binary