summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-02-14 00:22:42 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-02-14 00:22:42 -0400
commita2f241d50344726831ece2a354a599f389b20b54 (patch)
tree4201ae25224683439dc32437b7708eab3ab81a5b /Seek.hs
parentcbaebf538a8659193fb3dbb4f32e0f918a385af3 (diff)
fix LsFiles.typeChanged paths
Passing absolute paths to Command.Add used to work, but after recent changes doesn't. All LsFiles should use relative paths anyway, so fix it there.
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Seek.hs b/Seek.hs
index a9c034d22..7f5506316 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -58,10 +58,8 @@ withFilesUnlockedToBeCommitted = withFilesUnlocked' LsFiles.typeChangedStaged
withFilesUnlocked' :: ([FilePath] -> Git.Repo -> IO [FilePath]) -> (FilePath -> CommandStart) -> CommandSeek
withFilesUnlocked' typechanged a params = do
-- unlocked files have changed type from a symlink to a regular file
- top <- fromRepo Git.workTree
typechangedfiles <- seekHelper typechanged params
- let unlockedfiles = liftIO $ filterM notSymlink $
- map (\f -> top ++ "/" ++ f) typechangedfiles
+ let unlockedfiles = liftIO $ filterM notSymlink typechangedfiles
prepFiltered a unlockedfiles
withKeys :: (Key -> CommandStart) -> CommandSeek