5579f44d2f ("treewide: remove unnecessary cache.h inclusion", 2023-04-11) broke connections via git protocol because it removed the inclusion of the default port macro. While some may consider this transport to be deprecated, it still serves some purpose. connect.c (no more chache.h) and daemon.c (which still includes cache.h) are the only users of the macro. Hot fix the issue by copying the definition to connect.c. A real fix will identify a proper common header file (I couldn't) or create a new one. Signed-off-by: Michael J Gruber <git@xxxxxxxxx> --- connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connect.c b/connect.c index 5d8036197d..64f89e33cf 100644 --- a/connect.c +++ b/connect.c @@ -20,6 +20,8 @@ #include "alias.h" #include "bundle-uri.h" +#define DEFAULT_GIT_PORT 9418 + static char *server_capabilities_v1; static struct strvec server_capabilities_v2 = STRVEC_INIT; static const char *next_server_feature_value(const char *feature, int *len, int *offset); -- 2.40.0.403.g8e07f5f217