Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: release strbuf on error return in index_path()
[gitweb.git]
/
repository.c
diff --git
a/repository.c
b/repository.c
index c0e0e0e7e76015e3f93b21528bff58286fab0fb2..f107af7d763e848648ace5da0010be4df2e0d4dc 100644
(file)
--- a/
repository.c
+++ b/
repository.c
@@
-160,7
+160,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;