diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-01-06 19:02:48 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-01-06 19:02:48 -0400 |
commit | 9af9872f0f54d5d4af2aed3d08eef9ab67012261 (patch) | |
tree | 4849db9d9bfa08603a4d0913bb1fbbf14213b4a4 /Git/Construct.hs | |
parent | 46b630831bda126b6f4ab723229e32c1677ae6d0 (diff) | |
download | git-repair-9af9872f0f54d5d4af2aed3d08eef9ab67012261.tar.gz |
Merge from git-annex.
Diffstat (limited to 'Git/Construct.hs')
-rw-r--r-- | Git/Construct.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Git/Construct.hs b/Git/Construct.hs index eed2b99..3c6013a 100644 --- a/Git/Construct.hs +++ b/Git/Construct.hs @@ -46,8 +46,8 @@ fromCwd = getCurrentDirectory >>= seekUp r <- checkForRepo dir case r of Nothing -> case parentDir dir of - "" -> return Nothing - d -> seekUp d + Nothing -> return Nothing + Just d -> seekUp d Just loc -> Just <$> newFrom loc {- Local Repo constructor, accepts a relative or absolute path. -} |