From bc1d04f0b92c0359a399cd38924cd6c58f82eb6e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 2 Jul 2014 21:49:51 +0200 Subject: [PATCH] Always send initial index, even if empty (ref #344) --- protocol/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/protocol.go b/protocol/protocol.go index d3bbd5a69..564220695 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -178,7 +178,7 @@ func (c *rawConnection) Index(repo string, idx []FileInfo) { idx = diff } - if len(idx) > 0 { + if msgType == messageTypeIndex || len(idx) > 0 { c.send(header{0, -1, msgType}, IndexMessage{repo, idx}) } }