For some reason, HEAD was not listed in info/refs until now, which means
that git-ls-remote does not return it for dumb transports while the native
transports show it. It would be nice to have it because of git-mirror and
possibly other nifty stuff.
Signed-off-by: Petr Baudis <redacted>
---
server-info.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/server-info.c b/server-info.c
index f9be5a7..6cddb11 100644
--- a/server-info.c
+++ b/server-info.c
@@ -36,6 +36,7 @@ static int update_info_refs(int force)
info_ref_fp = fopen(path1, "w");
if (!info_ref_fp)
return error("unable to update %s", path0);
+ head_ref(add_info_ref, NULL);
for_each_ref(add_info_ref, NULL);
fclose(info_ref_fp);
rename(path1, path0);