Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit da26b61

Browse files
committed
Merge 'refs/rewritten/junio/notyet' into HEAD
2 parents 9fc1855 + 2a245b1 commit da26b61

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,13 +1130,11 @@ else
11301130
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
11311131
PROGRAM_OBJS += http-fetch.o
11321132
PROGRAMS += $(REMOTE_CURL_NAMES)
1133-
curl_check := $(shell (echo 070908; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
1134-
ifeq "$(curl_check)" "070908"
1135-
ifndef NO_EXPAT
1133+
ifndef NO_EXPAT
1134+
ifndef NO_CURL_MULTI
11361135
PROGRAM_OBJS += http-push.o
11371136
endif
1138-
endif
1139-
ifndef NO_EXPAT
1137+
11401138
ifdef EXPATDIR
11411139
BASIC_CFLAGS += -I$(EXPATDIR)/include
11421140
EXPAT_LIBEXPAT = -L$(EXPATDIR)/$(lib) $(CC_LD_DYNPATH)$(EXPATDIR)/$(lib) -lexpat

builtin/grep.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
874874
if (len > 4 && is_dir_sep(pager[len - 5]))
875875
pager += len - 4;
876876

877+
if (opt.ignore_case && !strcmp("less", pager))
878+
string_list_append(&path_list, "-I");
879+
877880
if (!strcmp("less", pager) || !strcmp("vi", pager)) {
878881
struct strbuf buf = STRBUF_INIT;
879882
strbuf_addf(&buf, "+/%s%s",

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,17 @@ AC_CHECK_LIB([curl], [curl_global_init],
513513
[NO_CURL=],
514514
[NO_CURL=YesPlease])
515515

516+
if test -z "$NO_CURL"; then
517+
518+
AC_CHECK_DECLS([curl_multi_init],
519+
[NO_CURL_MULTI=],
520+
[NO_CURL_MULTI=UnfortunatelyYes],
521+
[[#include <curl/curl.h>]])
522+
523+
GIT_CONF_SUBST([NO_CURL_MULTI])
524+
525+
fi
526+
516527
GIT_UNSTASH_FLAGS($CURLDIR)
517528

518529
GIT_CONF_SUBST([NO_CURL])

0 commit comments

Comments
 (0)