Makefile: hide stderr of curl-config test

You will get $ make distclean 2>&1 | grep curl /bin/sh: curl-config: not found /bin/sh: curl-config: not found /bin/sh: curl-config: not found /bin/sh: curl-config: not found /bin/sh: curl-config: not found $ if you don't have a curl development package installed. The intent is not to alarm the user, but just to test if there is a new enough curl installed. However, if you look at search engine suggested completions, the above "error" messages are confusing people into thinking curl is a hard requirement. Redirect this error output to /dev/null as it is not necessary to be shown to the end users. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Paul Gortmaker committed Nov 21, 2012 at 22:19 UTC cad06d4d78b52b99d451063db2e6d08c34697d32
1 file changed +1 -1
Makefile
+1 -1
@@ -1564,7 +1564,7 @@ else
1564 REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
1565 PROGRAM_OBJS += http-fetch.o
1566 PROGRAMS += $(REMOTE_CURL_NAMES)
1567 - curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
1567 + curl_check := $(shell (echo 070908; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
1568 ifeq "$(curl_check)" "070908"
1569 ifndef NO_EXPAT
1570 PROGRAM_OBJS += http-push.o