Commit Diff


commit - ef504a85782c5cced25d81b2b5ae77a457ccc46a
commit + bb45bea88220ce7474bfe455a681f00406ba0e6f
blob - 64e720e2de27b8b2d1a4ab147d28cdac86cd6db0
blob + 600804ea94852ce949195c67cd44ea59c6bc7d92
--- gotd/parse.y
+++ gotd/parse.y
@@ -187,23 +187,6 @@ repository	: REPOSITORY STRING {
 				new_repo = conf_new_repo($2);
 			}
 			free($2);
-		}
-		| REPOSITORY STRING {
-			struct gotd_repo *repo;
-
-			TAILQ_FOREACH(repo, &gotd->repos, entry) {
-				if (strcmp(repo->name, $2) == 0) {
-					yyerror("duplicate repository '%s'", $2);
-					free($2);
-					YYERROR;
-				}
-			}
-
-			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_AUTH) {
-				new_repo = conf_new_repo($2);
-			}
-			free($2);
 		} '{' optnl repoopts2 '}' {
 		}
 		;