Commit b3f4d55086c5aac0aad36a57ce28e651ee5772fc

Tracey Emery 2022-01-24T16:36:16

unbreak gotweb index when pack files are missing

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 6363042..deca211 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -2002,7 +2002,7 @@ gw_load_got_paths(struct gw_trans *gw_trans)
 			error = NULL;
 			continue;
 		}
-		else if (error)
+		else if (error && error->code != GOT_ERR_LONELY_PACKIDX)
 			goto done;
 
 		if (lstat(gw_dir->path, &st) == 0 && S_ISDIR(st.st_mode) &&