File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ GIT_SRC_DIR=` pwd`
4
+ GIT_INSTALL_DIR=` pwd` /../git-install
5
+ CURL_INSTALL_DIR=/usr/local/opt/curl/
6
+ OPENSSL_INSTALL_DIR=/usr/local/opt/openssl
7
+
8
+ configure ()
9
+ {
10
+ cd $GIT_SRC_DIR
11
+ make clean
12
+ make configure
13
+ ./configure --prefix=$GIT_INSTALL_DIR --with-curl=$CURL_INSTALL_DIR --with-openssl=$OPENSSL_INSTALL_DIR
14
+
15
+ }
16
+
17
+ build ()
18
+ {
19
+ cd $GIT_SRC_DIR
20
+ make all
21
+ make install
22
+ }
23
+
24
+ $*
Original file line number Diff line number Diff line change @@ -1063,6 +1063,9 @@ struct active_request_slot *get_active_slot(void)
1063
1063
curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 1 );
1064
1064
curl_easy_setopt (slot -> curl , CURLOPT_RANGE , NULL );
1065
1065
1066
+ if (getenv ("GIT_CURL_INTERFACE" ))
1067
+ curl_easy_setopt (slot -> curl , CURLOPT_INTERFACE , getenv ("GIT_CURL_INTERFACE" ));
1068
+
1066
1069
/*
1067
1070
* Default following to off unless "ALWAYS" is configured; this gives
1068
1071
* callers a sane starting point, and they can tweak for individual
You can’t perform that action at this time.
0 commit comments