@cryptotaxi247 / kubo / commits / 6bf341302

fix for weird repo init issue

Jeromy committed Mar 18, 2015 at 15:52 UTC 6bf341302c76d77eb49a9f247d8c3eaefc29cb07
1 file changed +3 -1
namesys/publisher.go
+3 -1
@@ -148,7 +148,9 @@ func InitializeKeyspace(ctx context.Context, ds dag.DAGService, pub Publisher, p
148 return err
149 }
150
151 - err = pins.Pin(emptyDir, false)
151 + // pin recursively because this might already be pinned
152 + // and doing a direct pin would throw an error in that case
153 + err = pins.Pin(emptyDir, true)
154 if err != nil {
155 return err
156 }