Skip to content

Conversation

rokeller
Copy link
Contributor

Explicitly set the --work-tree path for the git command when retrieving the commit hash, to avoid always getting the '-dirty' suffix added to the AppVersion when revel is not run in the the app base directory. Use the revel.BasePath property to let git know which work tree to use.

gofmt causes more changes (line 42). The relevant changes however are restricted to line 213.

…ork trees regardless of where revel is run from.
@notzippy notzippy added this to the v0.19 milestone Jan 16, 2018
@notzippy notzippy merged commit 0583fe7 into revel:develop Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants