File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
- version : 10.0.2
1
+ version : 10.0.3
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if [ "$USE_SSH" = "true" ]; then
51
51
# match "github.com" from ssh uri
52
52
REPO=${REPO# " ssh://" }
53
53
SSH_HOST=$( echo " $REPO " | cut -d " :" -f 1 | cut -d " @" -f 2)
54
-
54
+
55
55
echo " Adding " $SSH_HOST " to known_hosts"
56
56
57
57
# removes all keys belonging to hostname from a known_hosts file
@@ -66,6 +66,15 @@ cd $WORKING_DIRECTORY
66
66
git config --global advice.detachedhead false
67
67
git config --global credential.helper " /bin/sh -c 'echo username=$USERNAME ; echo password=$PASSWORD '"
68
68
69
+ if [ -n " $HTTP_PROXY " ]; then
70
+ git config --global http.proxy " $HTTP_PROXY "
71
+ else
72
+ if [ -n " $HTTPS_PROXY " ]; then
73
+ git config --global http.proxy " $HTTPS_PROXY "
74
+ fi
75
+ fi
76
+
77
+
69
78
if [ -n " $SPARE_CHECKOUT " ]; then
70
79
echo " spare checkout"
71
80
if [ -d " $CLONE_DIR " ]; then
@@ -76,11 +85,11 @@ if [ -n "$SPARE_CHECKOUT" ]; then
76
85
chmod -R 774 $CLONE_DIR
77
86
cd $CLONE_DIR
78
87
git remote add origin $REPO
79
- git config core.sparsecheckout true
80
- echo " $SOURCE /*" >> .git/info/sparse-checkout
88
+ git config core.sparsecheckout true
89
+ echo " $SOURCE /*" >> .git/info/sparse-checkout
81
90
fi
82
-
83
- git pull --depth=1 origin $REVISION
91
+
92
+ git pull --depth=1 origin $REVISION
84
93
exit 0
85
94
fi
86
95
You can’t perform that action at this time.
0 commit comments