Merge pull request #387 from abperiasamy/git-commit-id-generator

git commit hash generator
This commit is contained in:
Anand Babu (AB) Periasamy
2015-03-25 22:58:54 -07:00
4 changed files with 34 additions and 14 deletions

View File

@@ -26,10 +26,6 @@ import (
"github.com/minio-io/minio/pkg/utils/log"
)
// commitID is automatically set by git. Settings are controlled
// through .gitattributes
const commitID = "$Id$"
var flags = []cli.Flag{
cli.StringFlag{
Name: "domain,d",
@@ -123,13 +119,13 @@ func runCmd(c *cli.Context) {
func main() {
// set up iodine
iodine.SetGlobalState("minio.git", commitID)
iodine.SetGlobalState("minio.git", gitCommitHash)
iodine.SetGlobalState("minio.starttime", time.Now().Format(time.RFC3339))
// set up app
app := cli.NewApp()
app.Name = "minio"
app.Version = commitID
app.Version = gitCommitHash
app.Author = "Minio.io"
app.Usage = "Minimalist Object Storage"
app.EnableBashCompletion = true