automate remote.name.skipFetchAll
initremote, enableremote: Set remote.name.skipFetchAll when the remote cannot be fetched from by git, so git fetch --all will not try to use it.
This commit is contained in:
parent
69f2d1dd43
commit
79a0435b77
7 changed files with 22 additions and 13 deletions
|
@ -128,8 +128,8 @@ updateRemote remote = do
|
|||
| otherwise = return r
|
||||
|
||||
{- Checks if a remote is syncable using git. -}
|
||||
gitSyncableRemote :: Remote -> Bool
|
||||
gitSyncableRemote r = remotetype r `elem`
|
||||
gitSyncableRemoteType :: RemoteType -> Bool
|
||||
gitSyncableRemoteType t = t `elem`
|
||||
[ Remote.Git.remote
|
||||
, Remote.GCrypt.remote
|
||||
, Remote.P2P.remote
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue