minor fixes to autobuild
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
eeba0d7c0d
commit
236541d379
|
@ -88,12 +88,12 @@ func build(tag string) *bool {
|
||||||
shell.Run("git checkout v" + tag)
|
shell.Run("git checkout v" + tag)
|
||||||
|
|
||||||
gitref := shell.Run("git rev-list -1 HEAD")
|
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) {
|
if (gitref != tagref) {
|
||||||
log.Println("\tJESUS HOW TO DO THIS CORRECTLY?", gitref, "ne", tagref)
|
log.Println("\tWHAT WENT WRONG?", gitref, "ne", tagref)
|
||||||
// os.Exit(-1)
|
b = false
|
||||||
// return nil
|
return &b
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup the files that will end up in the binary
|
// setup the files that will end up in the binary
|
||||||
|
|
Loading…
Reference in New Issue