diff options
author | Araq <rumpf_a@web.de> | 2014-10-20 01:05:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-20 01:05:13 +0200 |
commit | 4aab018bd6d45dce0ec35530e348edd68ce4542d (patch) | |
tree | 3e5b534464955b29b0b03075c1362ad378d6b59c /tools | |
parent | 1ddc42f570c0ab70b7f97222cdbd77bb49b38716 (diff) | |
download | Nim-4aab018bd6d45dce0ec35530e348edd68ce4542d.tar.gz |
disable 'view source' feature
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nimweb.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim index 00faecc01..5233bac45 100644 --- a/tools/nimweb.nim +++ b/tools/nimweb.nim @@ -45,9 +45,10 @@ proc initConfigData(c: var TConfigData) = c.gitCommit = "master" c.numProcessors = countProcessors() # Attempts to obtain the git current commit. - let (output, code) = execCmdEx("git log -n 1 --format=%H") - if code == 0 and output.strip.len == 40: - c.gitCommit = output.strip + when false: + let (output, code) = execCmdEx("git log -n 1 --format=%H") + if code == 0 and output.strip.len == 40: + c.gitCommit = output.strip c.quotations = initTable[string, tuple[quote, author: string]]() include "website.tmpl" |