mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Updated git_clone to not verify ssl
https://stash.z-hub.io/projects/ZP/repos/z-push/browse is no longer an https, due to which clone fails unless no-ssl-verification is enabled.
This commit is contained in:
parent
2a72c800f6
commit
f66b340d05
@ -205,7 +205,7 @@ function git_clone {
|
|||||||
TARGETPATH=$4
|
TARGETPATH=$4
|
||||||
TMPPATH=/tmp/git-clone-$$
|
TMPPATH=/tmp/git-clone-$$
|
||||||
rm -rf $TMPPATH $TARGETPATH
|
rm -rf $TMPPATH $TARGETPATH
|
||||||
git clone -q $REPO $TMPPATH || exit 1
|
git clone -c http.sslVerify=false -q $REPO $TMPPATH || exit 1
|
||||||
(cd $TMPPATH; git checkout -q $TREEISH;) || exit 1
|
(cd $TMPPATH; git checkout -q $TREEISH;) || exit 1
|
||||||
mv $TMPPATH/$SUBDIR $TARGETPATH
|
mv $TMPPATH/$SUBDIR $TARGETPATH
|
||||||
rm -rf $TMPPATH
|
rm -rf $TMPPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user