[PATCH 4/4] server info: Add HEAD to info/refs
- From
Petr Baudis <pasky@suse.cz>
- Date
- Apr 27, 2007, 02:06 UTC
- Message-ID
- <20070427020608.22991.29273.stgit@rover>
- In-Reply-To
- <20070427020601.22991.13792.stgit@rover>
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 <pasky@suse.cz> ---
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);