avoid empty env vars when setting up clean environment
This commit is contained in:
parent
72b592cdae
commit
5c834daf59
1 changed files with 3 additions and 2 deletions
|
@ -96,6 +96,7 @@ cleanEnvironment = clean <$> getEnvironment
|
|||
lookup "GIT_ANNEX_STANDLONE_ENV" env
|
||||
restoreorig oldenv p@(k, _v)
|
||||
| k `elem` vars = case lookup ("ORIG_" ++ k) oldenv of
|
||||
Nothing -> Nothing
|
||||
(Just v') -> Just (k, v')
|
||||
(Just v')
|
||||
| not (null v') -> Just (k, v')
|
||||
_ -> Nothing
|
||||
| otherwise = Just p
|
||||
|
|
Loading…
Reference in a new issue