diff options
author | Joey Hess <joey@kitenet.net> | 2014-08-12 14:38:53 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-08-12 14:38:53 -0400 |
commit | fc50718ed8a2da1d321a9b4e93bd184569c84a76 (patch) | |
tree | 8a7965c9eb179fff428d63a0ab71c7ac5bcc183a /Backend | |
parent | eff5e6b302b14dac025ec31370203740b6eede4e (diff) |
WORM backend: When adding a file in a subdirectory, avoid including the subdirectory in the key name.
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/WORM.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/WORM.hs b/Backend/WORM.hs index c972602ad..6ba513960 100644 --- a/Backend/WORM.hs +++ b/Backend/WORM.hs @@ -36,7 +36,7 @@ backend = Backend keyValue :: KeySource -> Annex (Maybe Key) keyValue source = do stat <- liftIO $ getFileStatus $ contentLocation source - n <- genKeyName $ keyFilename source + n <- genKeyName $ takeFileName $ keyFilename source return $ Just $ stubKey { keyName = n , keyBackendName = name backend |