summaryrefslogtreecommitdiff
path: root/repository.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-07-13 23:49:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-17 20:54:37 (GMT)
commitcd73de47148c16760a62fa3f75cafe015ca764b2 (patch)
tree307e99cfba18e3b880af01bf9656a961298439fd /repository.c
parentd1a35e5c93eb57abd1133a8c55ba961cc55268a6 (diff)
downloadgit-cd73de47148c16760a62fa3f75cafe015ca764b2.zip
git-cd73de47148c16760a62fa3f75cafe015ca764b2.tar.gz
git-cd73de47148c16760a62fa3f75cafe015ca764b2.tar.bz2
submodule: convert submodule config lookup to use object_id
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.c')
-rw-r--r--repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.c b/repository.c
index edca907..1617467 100644
--- a/repository.c
+++ b/repository.c
@@ -158,7 +158,7 @@ int repo_submodule_init(struct repository *submodule,
struct strbuf worktree = STRBUF_INIT;
int ret = 0;
- sub = submodule_from_cache(superproject, null_sha1, path);
+ sub = submodule_from_cache(superproject, &null_oid, path);
if (!sub) {
ret = -1;
goto out;