finished hlinting
This commit is contained in:
parent
57adb0347b
commit
eeae910242
23 changed files with 144 additions and 159 deletions
|
@ -25,13 +25,13 @@ getVersion :: Annex (Maybe String)
|
|||
getVersion = do
|
||||
g <- Annex.gitRepo
|
||||
let v = Git.configGet g versionField ""
|
||||
if (not $ null v)
|
||||
if not $ null v
|
||||
then return $ Just v
|
||||
else do
|
||||
-- version 0 was not recorded in .git/config;
|
||||
-- such a repo should have an annexDir
|
||||
d <- liftIO $ doesDirectoryExist $ annexDir g
|
||||
if (d)
|
||||
if d
|
||||
then return $ Just "0"
|
||||
else return Nothing -- no version yet
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue