Improve detection of version 0 repos.
This commit is contained in:
parent
d1b5ef9565
commit
83a87a5229
2 changed files with 5 additions and 2 deletions
|
@ -29,9 +29,11 @@ getVersion = do
|
||||||
then return $ Just v
|
then return $ Just v
|
||||||
else do
|
else do
|
||||||
-- version 0 was not recorded in .git/config;
|
-- version 0 was not recorded in .git/config;
|
||||||
-- such a repo should have an annexDir
|
-- such a repo should have an annexDir but no
|
||||||
|
-- annexObjectDir
|
||||||
d <- liftIO $ doesDirectoryExist $ annexDir g
|
d <- liftIO $ doesDirectoryExist $ annexDir g
|
||||||
if d
|
o <- liftIO $ doesDirectoryExist $ annexObjectDir g
|
||||||
|
if d && not o
|
||||||
then return $ Just "0"
|
then return $ Just "0"
|
||||||
else return Nothing -- no version yet
|
else return Nothing -- no version yet
|
||||||
|
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -4,6 +4,7 @@ git-annex (0.11) UNRELEASED; urgency=low
|
||||||
repositories. This allows resuming interrupted transfers.
|
repositories. This allows resuming interrupted transfers.
|
||||||
* Added remote.annex-rsync-options.
|
* Added remote.annex-rsync-options.
|
||||||
* Avoid deleting temp files when rsync fails.
|
* Avoid deleting temp files when rsync fails.
|
||||||
|
* Improve detection of version 0 repos.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Thu, 02 Dec 2010 16:54:12 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 02 Dec 2010 16:54:12 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue