Fix deployement of git repositories.
The git repositories to upload are in the $EXPORT_DIR/GIT. So we need to move there before try to push them.
This commit is contained in:
parent
a731cf43a3
commit
27e92724e7
|
@ -69,12 +69,13 @@ then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd ${EXPORT_DIR}/GIT
|
||||||
GIT_REPOS=$(ls -d */)
|
GIT_REPOS=$(ls -d */)
|
||||||
if [[ "x$GIT_REPOS" != "x" ]]
|
if [[ "x$GIT_REPOS" != "x" ]]
|
||||||
then
|
then
|
||||||
for repo in $GIT_REPOS
|
for repo in $GIT_REPOS
|
||||||
do
|
do
|
||||||
(cd repo;
|
(cd $repo;
|
||||||
GIT_SSH_COMMAND"ssh -o StrictHostKeyChecking=no -i $SSH_KEY" git push
|
GIT_SSH_COMMAND"ssh -o StrictHostKeyChecking=no -i $SSH_KEY" git push
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue