summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSpencer E. Olson <olsonse@umich.edu>2010-08-11 20:40:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-11 21:07:31 (GMT)
commitb1d1058cc348a985a6209f920fab0db592dc83de (patch)
tree7ab93f6a533ec1ec72336cd537320de2a0f3f6db /Makefile
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
downloadgit-b1d1058cc348a985a6209f920fab0db592dc83de.zip
git-b1d1058cc348a985a6209f920fab0db592dc83de.tar.gz
git-b1d1058cc348a985a6209f920fab0db592dc83de.tar.bz2
Allow HTTP user agent string to be modified.
Some firewalls restrict HTTP connections based on the clients user agent. This commit provides the user the ability to modify the user agent string via either a new config option (http.useragent) or by an environment variable (GIT_HTTP_USER_AGENT). Relevant documentation is added to Documentation/config.txt. Signed-off-by: Spencer E. Olson <olsonse@umich.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bc3c570..9567649 100644
--- a/Makefile
+++ b/Makefile
@@ -1872,7 +1872,7 @@ builtin/init-db.s builtin/init-db.o: EXTRA_CPPFLAGS = \
config.s config.o: EXTRA_CPPFLAGS = -DETC_GITCONFIG='"$(ETC_GITCONFIG_SQ)"'
-http.s http.o: EXTRA_CPPFLAGS = -DGIT_USER_AGENT='"git/$(GIT_VERSION)"'
+http.s http.o: EXTRA_CPPFLAGS = -DGIT_HTTP_USER_AGENT='"git/$(GIT_VERSION)"'
ifdef NO_EXPAT
http-walker.s http-walker.o: EXTRA_CPPFLAGS = -DNO_EXPAT