diff options
author | Zara Gebru <zgebru@thoughtworks.com> | 2016-04-07 11:31:28 +0200 |
---|---|---|
committer | Zara Gebru <zgebru@thoughtworks.com> | 2016-04-07 11:31:28 +0200 |
commit | 22751f8a4f1172ee8acc43a64561e43bc436328d (patch) | |
tree | 2b792b0cedbe2beefa00566641960ea2e5711c35 /web-ui/config | |
parent | 6dd0975fb294365c939ca19bb838927d2267a0ee (diff) |
Issue #644: add time passed since last commit in nav bar
Diffstat (limited to 'web-ui/config')
-rwxr-xr-x | web-ui/config/add_git_version.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web-ui/config/add_git_version.sh b/web-ui/config/add_git_version.sh index 2732abed..b9cfba72 100755 --- a/web-ui/config/add_git_version.sh +++ b/web-ui/config/add_git_version.sh @@ -3,8 +3,10 @@ TEMPLATE_FILE="app/js/generated/hbs/templates.js" COMMITISH=$(git rev-parse --short HEAD) +COMMITDATE=$(git show -s --format=%cr) perl -pi -e "s/UNKNOWN_VERSION/$COMMITISH/" $TEMPLATE_FILE +perl -pi -e "s/COMMIT_DATE/$COMMITDATE/" $TEMPLATE_FILE if [ ! -f "$TEMPLATE_FILE" ] ; then echo "file $TEMPLATE_FILE not found" 1>&2 |