Skip to content

Commit 518cd0c

Browse files
committed
Merge tag 'prerelease-v2.11.0.windows.1.1'
This merges the "Pre-release to test fixes for #981 and #987". These commits were actually meant to land in `master` before merging the Pull Requests; Better late than never. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 13d7269 + c480725 commit 518cd0c

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,9 @@ builtin/help.sp builtin/help.s builtin/help.o: EXTRA_CPPFLAGS = \
17761776
version.sp version.s version.o: GIT-VERSION-FILE GIT-USER-AGENT
17771777
version.sp version.s version.o: EXTRA_CPPFLAGS = \
17781778
'-DGIT_VERSION="$(GIT_VERSION)"' \
1779-
'-DGIT_USER_AGENT=$(GIT_USER_AGENT_CQ_SQ)'
1779+
'-DGIT_USER_AGENT=$(GIT_USER_AGENT_CQ_SQ)' \
1780+
'-DGIT_BUILT_FROM_COMMIT="$(shell git rev-parse -q --verify HEAD || \
1781+
echo "(unknown)")"'
17801782

17811783
$(BUILT_INS): git$X
17821784
$(QUIET_BUILT_IN)$(RM) $@ && \

help.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ int cmd_version(int argc, const char **argv, const char *prefix)
433433
printf("git version %s\n", git_version_string);
434434
while (*++argv) {
435435
if (!strcmp(*argv, "--build-options")) {
436+
printf("built from commit: %s\n",
437+
git_built_from_commit_string);
436438
printf("sizeof-long: %d\n", (int)sizeof(long));
437439
printf("machine: %s\n", build_platform);
438440
/* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int curl_save_cookies;
109109
struct credential http_auth = CREDENTIAL_INIT;
110110
static int http_proactive_auth;
111111
static const char *user_agent;
112-
static int curl_empty_auth;
112+
static int curl_empty_auth = 1;
113113

114114
#if LIBCURL_VERSION_NUM >= 0x071700
115115
/* Use CURLOPT_KEYPASSWD as is */

version.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "strbuf.h"
44

55
const char git_version_string[] = GIT_VERSION;
6+
const char git_built_from_commit_string[] = GIT_BUILT_FROM_COMMIT;
67

78
const char *git_user_agent(void)
89
{

version.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define VERSION_H
33

44
extern const char git_version_string[];
5+
extern const char git_built_from_commit_string[];
56

67
const char *git_user_agent(void);
78
const char *git_user_agent_sanitized(void);

0 commit comments

Comments
 (0)