add git-annex updatecluster command
Seems to work fine, making the right changes to the git-annex branch.
This commit is contained in:
parent
2844230dfe
commit
bbf261487d
13 changed files with 114 additions and 28 deletions
|
@ -30,7 +30,7 @@ start = startingCustomOutput (ActionItemOther Nothing) $ do
|
|||
rs <- R.remoteList
|
||||
let proxies = S.fromList $
|
||||
map (\r -> Proxy (R.uuid r) (R.name r)) $
|
||||
filter (remoteAnnexProxy . R.gitconfig) rs
|
||||
filter (isproxy . R.gitconfig) rs
|
||||
u <- getUUID
|
||||
oldproxies <- fromMaybe mempty . M.lookup u <$> getProxies
|
||||
if oldproxies == proxies
|
||||
|
@ -50,3 +50,5 @@ start = startingCustomOutput (ActionItemOther Nothing) $ do
|
|||
putStrLn $ safeOutput $
|
||||
"Stopped proxying for " ++ proxyRemoteName p
|
||||
_ -> noop
|
||||
|
||||
isproxy c = remoteAnnexProxy c || not (null (remoteAnnexClusterNode c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue