mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-22 15:05:26 +00:00
Merge pull request #108 from rokeller/develop
Generate same value of AppVersion regardless of where revel is run
This commit is contained in:
@@ -220,7 +220,7 @@ func getAppVersion() string {
|
|||||||
if (err != nil && os.IsNotExist(err)) || !info.IsDir() {
|
if (err != nil && os.IsNotExist(err)) || !info.IsDir() {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
gitCmd := exec.Command(gitPath, "--git-dir="+gitDir, "describe", "--always", "--dirty")
|
gitCmd := exec.Command(gitPath, "--git-dir="+gitDir, "--work-tree="+revel.BasePath, "describe", "--always", "--dirty")
|
||||||
revel.RevelLog.Debug("Exec:", "args", gitCmd.Args)
|
revel.RevelLog.Debug("Exec:", "args", gitCmd.Args)
|
||||||
output, err := gitCmd.Output()
|
output, err := gitCmd.Output()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user