summaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-30 14:10:28 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-30 14:10:28 -0400
commitee8845d48d6e70424a7dd65e45d5d2aaba5edab1 (patch)
tree8628387ae12cf3ba9b2e99984277f1118ba76fa6 /Remote.hs
parente0544f17c1ac482445ff1ae18a413be7cad68f2c (diff)
improve messages
Diffstat (limited to 'Remote.hs')
-rw-r--r--Remote.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Remote.hs b/Remote.hs
index 8a03f757d..90cc6008e 100644
--- a/Remote.hs
+++ b/Remote.hs
@@ -282,7 +282,9 @@ showLocations separateuntrusted key exclude nolocmsg = do
let uuidsskipped = filteruuids uuids (u:exclude++uuidswanted)
ppuuidswanted <- prettyPrintUUIDs "wanted" uuidswanted
ppuuidsskipped <- prettyPrintUUIDs "skipped" uuidsskipped
- showLongNote $ message ppuuidswanted ppuuidsskipped
+ let msg = message ppuuidswanted ppuuidsskipped
+ unless (null msg) $
+ showLongNote msg
ignored <- filter (remoteAnnexIgnore . gitconfig) <$> remoteList
unless (null ignored) $
showLongNote $ "(Note that these git remotes have annex-ignore set: " ++ unwords (map name ignored) ++ ")"