diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-02-19 14:03:23 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-02-19 14:12:15 -0400 |
commit | 0366c6eac698327ced9c63e241a9474a5c2a7e20 (patch) | |
tree | 6ca01bda2e500396154a4fa9b473fa3cc9bc193d /Annex.hs | |
parent | ef1a5a1f9b85de7261ac9a27bede3dedda88fb45 (diff) |
fix --json-progress --json to be same as --json --json-progress
Fix behavior of --json-progress followed by --json, in which
the latter option disabled the former.
This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -275,7 +275,8 @@ addCleanup k a = changeState $ \s -> {- Sets the type of output to emit. -} setOutput :: OutputType -> Annex () setOutput o = changeState $ \s -> - s { output = (output s) { outputType = o } } + let m = output s + in s { output = m { outputType = adjustOutputType (outputType m) o } } {- Checks if a flag was set. -} getFlag :: String -> Annex Bool |