From 723c31fea2f1c4994de837bda9022ffa8b6de1bb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 5 Jul 2005 11:31:32 -0700 Subject: Add "git_path()" and "head_ref()" helper functions. "git_path()" returns a static pathname pointer into the git directory using a printf-like format specifier. "head_ref()" works like "for_each_ref()", except for just the HEAD. --- upload-pack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'upload-pack.c') diff --git a/upload-pack.c b/upload-pack.c index d35c0685ce..9edbf51dc5 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -153,6 +153,7 @@ static int send_ref(const char *refname, const unsigned char *sha1) static int upload_pack(void) { + head_ref(send_ref); for_each_ref(send_ref); packet_flush(1); nr_needs = receive_needs(); -- cgit v1.2.3