Browse Source

Always send initial index, even if empty (ref #344)

Jakob Borg 11 years ago
parent
commit
bc1d04f0b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protocol/protocol.go

+ 1 - 1
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})
 	}
 }