Avoid running annex.http-headers-command more than once.
This commit is contained in:
parent
98cc34c211
commit
2ec07bc29f
11 changed files with 31 additions and 28 deletions
|
@ -248,8 +248,7 @@ tryGitConfigRead autoinit r
|
|||
return $ Right r'
|
||||
Left l -> return $ Left l
|
||||
|
||||
geturlconfig = do
|
||||
uo <- Url.getUrlOptions
|
||||
geturlconfig = Url.withUrlOptions $ \uo -> do
|
||||
v <- liftIO $ withTmpFile "git-annex.tmp" $ \tmpfile h -> do
|
||||
hClose h
|
||||
let url = Git.repoLocation r ++ "/config"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue