@@ -63,7 +63,8 @@ install_dependencies() {
6363}
6464
6565sync_code() {
66− bzr export --uncommitted --format=dir /tmp/$CODE_DIR
66+ [ -e .bzr ] && bzr export --uncommitted --format=dir /tmp/$CODE_DIR
67+ [ -e .git ] && git checkout-index -a -f --prefix=/tmp/$CODE_DIR/
6768 rsync -crlOzv -e "ssh -p $TARGET_SSH_PORT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" /tmp/$CODE_DIR/ $USER@$TARGET_IP:$CODE_DIR/
6869 rm -rf /tmp/$CODE_DIR
6970}