diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-10-30 22:16:29 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-10-30 22:16:29 -0500 |
| commit | 1f3ae34dc0fd9959cdd187a57cc4854cb9ca9b67 (patch) | |
| tree | af727c849bab68c91952e90b5db978d449d83780 | |
| parent | 1c057f2520dd912176d2559e0761b060029fd217 (diff) | |
| download | nimgen-1f3ae34dc0fd9959cdd187a57cc4854cb9ca9b67.tar.gz nimgen-1f3ae34dc0fd9959cdd187a57cc4854cb9ca9b67.zip | |
Fix gGitOutput set
| -rw-r--r-- | src/nimgen/external.nim | 1 | ||||
| -rw-r--r-- | src/nimgen/runcfg.nim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nimgen/external.nim b/src/nimgen/external.nim index a34ea69..8656147 100644 --- a/src/nimgen/external.nim +++ b/src/nimgen/external.nim @@ -81,7 +81,6 @@ proc gitCheckout*(file: string) = proc gitPull() = if gGitCheckout.len() != 0: echo "Checking out " & gGitCheckout - #discard execProc("git fetch --depth=1 origin " & gGitCheckout) discard execProc("git pull --tags origin master") discard execProc("git checkout " & gGitCheckout) gGitCheckout = "" diff --git a/src/nimgen/runcfg.nim b/src/nimgen/runcfg.nim index f2310ff..a924734 100644 --- a/src/nimgen/runcfg.nim +++ b/src/nimgen/runcfg.nim @@ -201,6 +201,8 @@ proc setOutputDir(dir: string) = quit(1) createDir(gOutput) + gGitOutput = gOutput + proc runCfg*(cfg: string) = if not fileExists(cfg): echo "Config doesn't exist: " & cfg |
