git-remote-annex enableremote to support readonly webdav
* Allow enableremote of an existing webdav special remote that has read-only access. * git-remote-annex: Use enableremote rather than initremote.
This commit is contained in:
parent
e7e479c1f0
commit
5d2aaafa6c
5 changed files with 39 additions and 9 deletions
|
@ -137,7 +137,9 @@ webdavSetup ss mu mcreds c gc = do
|
|||
(c', encsetup) <- encryptionSetup c gc
|
||||
pc <- either giveup return . parseRemoteConfig c' =<< configParser remote c'
|
||||
creds <- maybe (getCreds pc gc u) (return . Just) mcreds
|
||||
testDav url creds
|
||||
case ss of
|
||||
Init -> testDav url creds
|
||||
_ -> noop
|
||||
gitConfigSpecialRemote u c' [("webdav", "true")]
|
||||
c'' <- setRemoteCredPair ss encsetup pc gc (davCreds u) creds
|
||||
return (c'', u)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue