summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2006-04-04 17:11:29 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-04 21:42:47 (GMT)
commit20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1 (patch)
tree90c1218fe99c4bfd5485492f5f3f9d33cfeabd49 /Makefile
parent7fa8ddd6e283f120938e379c980624798561c32d (diff)
downloadgit-20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1.zip
git-20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1.tar.gz
git-20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1.tar.bz2
Set HTTP user agent to git/GIT_VERSION
Useful for diagnostics/troubleshooting to know which client versions are hitting your server. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c79d646..145099a 100644
--- a/Makefile
+++ b/Makefile
@@ -510,6 +510,9 @@ git$X git.spec \
exec_cmd.o: exec_cmd.c
$(CC) -o $*.o -c $(ALL_CFLAGS) '-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' $<
+http.o: http.c
+ $(CC) -o $*.o -c $(ALL_CFLAGS) -DGIT_USER_AGENT='"git/$(GIT_VERSION)"' $<
+
git-%$X: %.o $(GITLIBS)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)