more OsPath conversion (639/749)
Sponsored-by: k0ld
This commit is contained in:
parent
a5d48edd94
commit
c74c75b352
28 changed files with 147 additions and 132 deletions
|
@ -27,13 +27,11 @@ import Git.Env
|
|||
import Git.UpdateIndex
|
||||
import qualified Git.LsTree as LsTree
|
||||
import qualified Git.Branch as Git
|
||||
import Utility.RawFilePath
|
||||
|
||||
import qualified Data.Map as M
|
||||
import qualified Data.Set as S
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import Data.ByteString.Builder
|
||||
import qualified System.FilePath.ByteString as P
|
||||
|
||||
cmd :: Command
|
||||
cmd = noMessages $ withAnnexOptions [annexedMatchingOptions] $
|
||||
|
@ -120,10 +118,10 @@ mkUUIDMatcher' sameasmap l = \u ->
|
|||
|
||||
seek :: FilterBranchOptions -> CommandSeek
|
||||
seek o = withOtherTmp $ \tmpdir -> do
|
||||
let tmpindex = tmpdir P.</> "index"
|
||||
let tmpindex = tmpdir </> literalOsPath "index"
|
||||
gc <- Annex.getGitConfig
|
||||
tmpindexrepo <- Annex.inRepo $ \r ->
|
||||
addGitEnv r indexEnv (fromRawFilePath tmpindex)
|
||||
addGitEnv r indexEnv (fromOsPath tmpindex)
|
||||
withUpdateIndex tmpindexrepo $ \h -> do
|
||||
keyinfomatcher <- mkUUIDMatcher (keyInformation o)
|
||||
repoconfigmatcher <- mkUUIDMatcher (repoConfig o)
|
||||
|
@ -186,7 +184,7 @@ seek o = withOtherTmp $ \tmpdir -> do
|
|||
|
||||
-- Commit the temporary index, and output the result.
|
||||
t <- liftIO $ Git.writeTree tmpindexrepo
|
||||
liftIO $ removeWhenExistsWith removeLink tmpindex
|
||||
liftIO $ removeWhenExistsWith removeFile tmpindex
|
||||
cmode <- annexCommitMode <$> Annex.getGitConfig
|
||||
cmessage <- Annex.Branch.commitMessage
|
||||
c <- inRepo $ Git.commitTree cmode [cmessage] [] t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue