diff --git a/deploy.sh b/deploy.sh
index 259018e..d9a6289 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -43,6 +43,9 @@ git tag -a "$VERSION" -m "Version $VERSION" || error
echo "Building it..."
gradle build || error "Build failed. What did you do?!"
+echo "Getting git stats..."
+git_stats=$(git diff --shortstat stable..)
+
echo "Checking out stable..."
git checkout stable || error
@@ -77,7 +80,7 @@ docker push fabianonline/telegram_backup
echo "Notifying the Telegram group..."
release_notes=$(sed 's/\* /• /' | sed 's/&/&/g' | sed 's/\</g' | sed 's/>/\>/g' <<< "$release_notes")
-message="Version $VERSION was just released"$'\n'$'\n'"$release_notes"$'\n'$'\n'"$release_url"
+message="Version $VERSION was just released"$'\n'"$git_stats"$'\n'$'\n'"$release_notes"$'\n'$'\n'"$release_url"
curl https://api.telegram.org/bot${BOT_TOKEN}/sendMessage -XPOST --form "text=<-" --form-string "chat_id=${CHAT_ID}" --form-string "parse_mode=HTML" --form-string "disable_web_page_preview=true" <<< "$message"
diff --git a/deploy_beta.sh b/deploy_beta.sh
index b189ede..cd62894 100755
--- a/deploy_beta.sh
+++ b/deploy_beta.sh
@@ -18,13 +18,17 @@ additional_notes="$(cat)"
echo "Building it..."
gradle build || error "Build failed. What did you do?!"
+echo "Getting git stats..."
+git_stats=$(git diff --shortstat stable..)
+
echo "Copying it to files.fabianonline.de..."
filename="telegram_backup.beta_${version}.jar"
cp --no-preserve "mode,ownership,timestamps" build/libs/telegram_backup.jar /data/containers/nginx/www/files/${filename}
echo "Notifying the Telegram group..."
release_notes=$(echo "$release_notes" | sed 's/\* /• /' | sed 's/&/&/g' | sed 's/\</g' | sed 's/>/\>/g')
-message="New beta release $version"$'\n\n'
+message="New beta release $version"$'\n'
+message="${message}${git_stats}"$'\n\n'
message="${message}${additional_notes}"$'\n\n'
message="${message}Changes since the last real release:"$'\n'"${release_notes}"$'\n\n'
message="${message}This is a release for testing purposes only. There may be bugs included that might destroy your data. Only use this beta release if you know what you're doing. AND MAKE A BACKUP OF YOUR BACKUP BEFORE USING IT!"$'\n\n'