test suite found a problem with today's work
". def" did not do what I thought it would, at all.
This commit is contained in:
parent
10af77d657
commit
e0187d5d12
3 changed files with 5 additions and 5 deletions
|
@ -426,4 +426,4 @@ keyPath key hasher = hasher key </> f </> f
|
||||||
- special remotes and git-annex repos.
|
- special remotes and git-annex repos.
|
||||||
-}
|
-}
|
||||||
keyPaths :: Key -> [FilePath]
|
keyPaths :: Key -> [FilePath]
|
||||||
keyPaths key = map (keyPath key . def) dirHashes
|
keyPaths key = map (\h -> keyPath key (h def)) dirHashes
|
||||||
|
|
|
@ -213,8 +213,8 @@ remove o k = do
|
||||||
- content could be. Note that the parent directories have
|
- content could be. Note that the parent directories have
|
||||||
- to also be explicitly included, due to how rsync
|
- to also be explicitly included, due to how rsync
|
||||||
- traverses directories. -}
|
- traverses directories. -}
|
||||||
includes = concatMap (use .def) dirHashes
|
includes = concatMap use dirHashes
|
||||||
use h = let dir = h k in
|
use h = let dir = h def k in
|
||||||
[ parentDir dir
|
[ parentDir dir
|
||||||
, dir
|
, dir
|
||||||
-- match content directory and anything in it
|
-- match content directory and anything in it
|
||||||
|
|
|
@ -37,12 +37,12 @@ rsyncEscape o u
|
||||||
| otherwise = u
|
| otherwise = u
|
||||||
|
|
||||||
rsyncUrls :: RsyncOpts -> Key -> [RsyncUrl]
|
rsyncUrls :: RsyncOpts -> Key -> [RsyncUrl]
|
||||||
rsyncUrls o k = map (use . def) dirHashes
|
rsyncUrls o k = map use dirHashes
|
||||||
where
|
where
|
||||||
use h = rsyncUrl o </> hash h </> rsyncEscape o (f </> f)
|
use h = rsyncUrl o </> hash h </> rsyncEscape o (f </> f)
|
||||||
f = keyFile k
|
f = keyFile k
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
hash h = h k
|
hash h = h def k
|
||||||
#else
|
#else
|
||||||
hash h = replace "\\" "/" (h k)
|
hash h = replace "\\" "/" (h k)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue