|
|
@ -22,6 +22,7 @@ sshDomain="$(getConfig $shortname "git.ssh_domain")" |
|
|
|
sshPrivateKey="$(getConfig $shortname "git.ssh_private_key")" |
|
|
|
sshPublicKey="$(getConfig $shortname "git.ssh_public_key")" |
|
|
|
sshPrivateKeyPassphrase="$(getCryptedConfig $shortname "git.ssh_private_key_passphrase")" |
|
|
|
workspaces_dir="$(getConfig false "project_manager.workspaces_dir")" |
|
|
|
|
|
|
|
if [ "$url" == "" ] |
|
|
|
then |
|
|
@ -54,11 +55,7 @@ confirm |
|
|
|
|
|
|
|
if [ ! -d "$workspaces_dir/$customer/$project" ] |
|
|
|
then |
|
|
|
echo |
|
|
|
echoError "Wprkspace dir not exists" |
|
|
|
echo |
|
|
|
exit |
|
|
|
mkdir -p "$workspaces_dir/$customer/$project" |
|
|
|
fi |
|
|
|
|
|
|
|
sshAddKey "git" |
|
|
|
git clone "$url" "$workspaces_dir/$customer/$project" |