From f5bc12e0a931bef0acac548fd84a651b5a7ff966 Mon Sep 17 00:00:00 2001
From: Daniel Juarez Gonzalez <daniel.juarez.gonzalez@cern.ch>
Date: Fri, 3 Apr 2020 15:36:59 +0000
Subject: [PATCH] Make the repo commits as soon as possible to avoid an email
 with outdated links

---
 bin/bsmailusers | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/bin/bsmailusers b/bin/bsmailusers
index 31adf3f..84096e5 100755
--- a/bin/bsmailusers
+++ b/bin/bsmailusers
@@ -229,6 +229,8 @@ do
 			done
 			echo "" >> $MAIL
 		done
+		echo "Commiting updates to https://gitlab.cern.ch/linuxsupport/websites/linux.cern.ch"
+		$BIN/bscommitupdates -d $DIST -r $REPO
 		printf "$FOOTER" >> $MAIL
 		pkgSummary $FILES2
 		MAILTMP=`/bin/mktemp /tmp/$DIST$$.XXXXXXXX`
@@ -268,10 +270,6 @@ do
 			/usr/sbin/sendmail -t < $MAILTMP
 			echo -e $CYAN "*** Sent email to $MAILTO"
 			tput sgr0
-
-			echo "Commiting updates to https://gitlab.cern.ch/linuxsupport/websites/linux.cern.ch"
-			$BIN/bscommitupdates -d $DIST -r $REPO
-
 		else
 			cat $MAILTMP
 		fi
-- 
GitLab