diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-06-21 14:42:01 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-06-21 14:42:01 -0700 |
| commit | 9d8d51d53b53e32bd2b642676f6f1798e2a0897b (patch) | |
| tree | 5d72f251281567965c7defac9ebcd67c9f29c79e /http.c | |
| parent | 2b022f62ab26be1a51b1be9c76f3e73e3a5a2b38 (diff) | |
| parent | 745c7c8e6252ba41430a1442e1fa8da2ec40e9c2 (diff) | |
| download | git-9d8d51d53b53e32bd2b642676f6f1798e2a0897b.tar.xz | |
Merge branch 'jk/version-string'
Teaches git native protocol agents to show software version over the
wire.
* jk/version-string:
http: get default user-agent from git_user_agent
version: add git_user_agent function
move git_version_string into version.c
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include "run-command.h" #include "url.h" #include "credential.h" +#include "version.h" int active_requests; int http_is_verbose; @@ -299,7 +300,7 @@ static CURL *get_curl_handle(void) curl_easy_setopt(result, CURLOPT_VERBOSE, 1); curl_easy_setopt(result, CURLOPT_USERAGENT, - user_agent ? user_agent : GIT_HTTP_USER_AGENT); + user_agent ? user_agent : git_user_agent()); if (curl_ftp_no_epsv) curl_easy_setopt(result, CURLOPT_FTP_USE_EPSV, 0); |
