summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-02-10 11:16:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-10 19:13:26 (GMT)
commit32c597e7b2d85c1ae313e369b21398638cafe45d (patch)
treeb06ad5e6da8b31eb950573d63e19047ad66d246c /refs.c
parent7d4558c462f0d1a280abec59e8c64a2f2b42a9f2 (diff)
downloadgit-32c597e7b2d85c1ae313e369b21398638cafe45d.zip
git-32c597e7b2d85c1ae313e369b21398638cafe45d.tar.gz
git-32c597e7b2d85c1ae313e369b21398638cafe45d.tar.bz2
refs: push the submodule attribute down
Push the submodule attribute down from ref_store to files_ref_store. This is another step towards loosening the 1:1 connection between ref_stores and submodules. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/refs.c b/refs.c
index 5121c57..07959ff 100644
--- a/refs.c
+++ b/refs.c
@@ -1481,17 +1481,6 @@ void base_ref_store_init(struct ref_store *refs,
const char *submodule)
{
refs->be = be;
-
- if (!submodule)
- refs->submodule = "";
- else
- refs->submodule = xstrdup(submodule);
-}
-
-void assert_main_repository(struct ref_store *refs, const char *caller)
-{
- if (*refs->submodule)
- die("BUG: %s called for a submodule", caller);
}
/* backend functions */