Commit 7bf16821ab43b1b857aa86fd7e304ff383346bb2

Stefan Sperling 2020-02-07T08:32:02

properly skip non-repo dirss in gotweb repo path by masking related errors

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 0de2db7..7912b92 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1468,8 +1468,10 @@ gw_load_got_paths(struct gw_trans *gw_trans)
 			return got_error_from_errno("gw_dir malloc");
 
 		error = gw_load_got_path(gw_trans, gw_dir);
-		if (error && error->code == GOT_ERR_NOT_GIT_REPO)
+		if (error && error->code == GOT_ERR_NOT_GIT_REPO) {
+			error = NULL;
 			continue;
+		}
 		else if (error)
 			return error;