Remind user when annex-ignore is set for some remotes, if unable to get or drop a file, possibly because it's on an ignored remote.

This commit is contained in:
Joey Hess 2013-09-06 16:54:31 -04:00
parent 89731a2737
commit dce7389dd0
2 changed files with 5 additions and 0 deletions

View file

@ -231,6 +231,9 @@ showLocations key exclude nolocmsg = do
ppuuidswanted <- Remote.prettyPrintUUIDs "wanted" uuidswanted
ppuuidsskipped <- Remote.prettyPrintUUIDs "skipped" uuidsskipped
showLongNote $ message ppuuidswanted ppuuidsskipped
ignored <- filter (remoteAnnexIgnore . gitconfig) <$> remoteList
unless (null ignored) $
showLongNote $ "(Note that these git remotes have annex-ignore set: " ++ unwords (map name ignored) ++ ")"
where
filteruuids l x = filter (`notElem` x) l
message [] [] = nolocmsg