We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4def703 commit 69a3c76Copy full SHA for 69a3c76
src/refdb_fs.c
@@ -181,6 +181,9 @@ static int packed_load(refdb_fs_backend *backend)
181
GITERR_CHECK_ALLOC(ref_cache->packfile);
182
}
183
184
+ if (backend->path == NULL)
185
+ return 0;
186
+
187
result = reference_read(&packfile, &ref_cache->packfile_time,
188
backend->path, GIT_PACKEDREFS_FILE, &updated);
189
@@ -1150,6 +1153,10 @@ static int setup_namespace(git_buf *path, git_repository *repo)
1150
1153
{
1151
1154
char *parts, *start, *end;
1152
1155
1156
+ /* Not all repositories have a path */
1157
+ if (repo->path_repository == NULL)
1158
1159
1160
/* Load the path to the repo first */
1161
git_buf_puts(path, repo->path_repository);
1162
0 commit comments