wip
This commit is contained in:
parent
bbfe4eafd7
commit
eb86f1338f
3 changed files with 13 additions and 1 deletions
|
@ -124,7 +124,16 @@ inAnnexSafe key = inAnnex' (fromMaybe False) (Just False) go key
|
||||||
Nothing -> is_unlocked
|
Nothing -> is_unlocked
|
||||||
check def Nothing = return def
|
check def Nothing = return def
|
||||||
#else
|
#else
|
||||||
checkindirect _ = return is_missing
|
checkindirect f = ifM (liftIO $ doesFileExist f)
|
||||||
|
( do
|
||||||
|
v <- lockShared f
|
||||||
|
case v of
|
||||||
|
Nothing -> return is_locked
|
||||||
|
Just lockhandle -> do
|
||||||
|
dropLock lockhandle
|
||||||
|
return is_unlocked
|
||||||
|
, return is_missing
|
||||||
|
)
|
||||||
{- In Windows, see if we can take a shared lock. If so,
|
{- In Windows, see if we can take a shared lock. If so,
|
||||||
- remove the lock file to clean up after ourselves. -}
|
- remove the lock file to clean up after ourselves. -}
|
||||||
checkdirect contentfile lockfile =
|
checkdirect contentfile lockfile =
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -11,6 +11,7 @@ git-annex (5.20140530) UNRELEASED; urgency=medium
|
||||||
* webapp: Include ssh port in mangled hostname.
|
* webapp: Include ssh port in mangled hostname.
|
||||||
* Windows: Fix bug introduced in last release that caused files
|
* Windows: Fix bug introduced in last release that caused files
|
||||||
in the git-annex branch to have lines teminated with \r.
|
in the git-annex branch to have lines teminated with \r.
|
||||||
|
* Windows: Fix retrieving of files from local bare git repositories.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Thu, 29 May 2014 20:10:59 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 29 May 2014 20:10:59 -0400
|
||||||
|
|
||||||
|
|
|
@ -139,3 +139,5 @@ I have a annex repo in external drive (a bare repo), usually synced with a macbo
|
||||||
upgrade supported from repository versions: 2 3 4
|
upgrade supported from repository versions: 2 3 4
|
||||||
|
|
||||||
[[!tag confirmed]]
|
[[!tag confirmed]]
|
||||||
|
|
||||||
|
> [[fixed|done]] --[[Joey]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue