move remote removal into separate module
This allows using Git.Remote w/o needing to have Git.BuildVersion, which requires configure. It will simplify github-backup when these libraries are used there.
This commit is contained in:
parent
9ca3e14481
commit
20a497b181
5 changed files with 33 additions and 17 deletions
|
@ -25,7 +25,7 @@ import Assistant.WebApp.RepoList
|
|||
import Assistant.WebApp.Configurators
|
||||
import Assistant.XMPP
|
||||
#endif
|
||||
import qualified Git.Remote
|
||||
import qualified Git.Remote.Remove
|
||||
import Remote.List
|
||||
import Creds
|
||||
|
||||
|
@ -211,7 +211,7 @@ getDisconnectXMPPR = do
|
|||
rs <- filter Remote.isXMPPRemote . syncRemotes
|
||||
<$> liftAssistant getDaemonStatus
|
||||
liftAnnex $ do
|
||||
mapM_ (inRepo . Git.Remote.remove . Remote.name) rs
|
||||
mapM_ (inRepo . Git.Remote.Remove.remove . Remote.name) rs
|
||||
void remoteListRefresh
|
||||
removeCreds xmppCredsFile
|
||||
liftAssistant $ do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue