Thread (57 messages) flat view 57 messages, 5 authors, 2016-06-16
STALE3752d

Revision v7 of 2 in this series.

Revisions (2)
  1. v6 [diff vs current]
  2. v7 current

[PATCH v7 29/33] setup: configure ref storage on setup

From: David Turner <hidden>
Date: 2016-06-15 23:08:34
Subsystem: the rest · Maintainer: Linus Torvalds

This sets up the existing backend early, so that other code which
reads refs is reading from the right place.

Signed-off-by: David Turner <redacted>
Signed-off-by: Junio C Hamano <redacted>
---
 config.c | 1 +
 setup.c  | 4 ++++
 2 files changed, 5 insertions(+)
diff --git a/config.c b/config.c
index 9ba40bc..cca7e28 100644
--- a/config.c
+++ b/config.c
@@ -11,6 +11,7 @@
 #include "strbuf.h"
 #include "quote.h"
 #include "hashmap.h"
+#include "refs.h"
 #include "string-list.h"
 #include "utf8.h"
 
diff --git a/setup.c b/setup.c
index bd3a2cf..e2e1220 100644
--- a/setup.c
+++ b/setup.c
@@ -457,6 +457,10 @@ static int check_repository_format_gently(const char *gitdir, int *nongit_ok)
 		ret = -1;
 	}
 
+	register_ref_storage_backends();
+	if (set_ref_storage_backend(ref_storage_backend))
+		die(_("Unknown ref storage backend %s"), ref_storage_backend);
+
 	strbuf_release(&sb);
 	return ret;
 }
-- 
2.4.2.767.g62658d5-twtrsrc
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help