Changed the build script and GetCGRVersion() to get the CommitDate instead of AuthorDate

This commit is contained in:
nickolasdaniel
2022-02-02 16:54:59 +02:00
committed by Dan Christian Bogos
parent 8273097670
commit 9cbee665b8
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#! /usr/bin/env sh
echo "Building CGRateS ..."
GIT_LAST_LOG=$(git log -1 | tr -d "'")
GIT_LAST_LOG=$(git log -1 --format=fuller | tr -d "'")
GIT_TAG_LOG=$(git tag -l --points-at HEAD)

View File

@@ -736,7 +736,7 @@ func GetCGRVersion() (vers string, err error) {
commitHash = commitSplt[1]
continue
}
if strings.HasPrefix(ln, "Date:") {
if strings.HasPrefix(ln, "CommitDate:") {
dateSplt := strings.Split(ln, ": ")
if len(dateSplt) != 2 {
return vers, fmt.Errorf("Building version - cannot split commit date")