summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-07-02 21:49:51 +0200
committerJakob Borg <jakob@nym.se>2014-07-02 21:50:11 +0200
commitbc1d04f0b92c0359a399cd38924cd6c58f82eb6e (patch)
tree8821b723110390c698e1134c4d5186f6c79e9073
parent381795d6d00c222df85bdf604fd2e464febdeefa (diff)
Always send initial index, even if empty (ref #344)
-rw-r--r--protocol/protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol/protocol.go b/protocol/protocol.go
index d3bbd5a69e..5642206953 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})
}
}