minor fixes to autobuild

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-14 09:36:52 -07:00
parent eeba0d7c0d
commit 236541d379
1 changed files with 4 additions and 4 deletions

View File

@ -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