From 6bf341302c76d77eb49a9f247d8c3eaefc29cb07 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 18 Mar 2015 15:52:09 -0700 Subject: [PATCH] fix for weird repo init issue --- namesys/publisher.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/namesys/publisher.go b/namesys/publisher.go index 5d763f490..c96915307 100644 --- a/namesys/publisher.go +++ b/namesys/publisher.go @@ -148,7 +148,9 @@ func InitializeKeyspace(ctx context.Context, ds dag.DAGService, pub Publisher, p return err } - err = pins.Pin(emptyDir, false) + // pin recursively because this might already be pinned + // and doing a direct pin would throw an error in that case + err = pins.Pin(emptyDir, true) if err != nil { return err }