From b00893e3d412c76a919fb950aa33dcf4f7094854 Mon Sep 17 00:00:00 2001 From: Rhys Smith Date: Tue, 23 Aug 2016 20:28:12 +0100 Subject: [PATCH] Fix slack notifications for git commit messages containing apostrophies --- utilities/diff-between-publications.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/diff-between-publications.sh b/utilities/diff-between-publications.sh index 3b1dc26d..6928a14c 100755 --- a/utilities/diff-between-publications.sh +++ b/utilities/diff-between-publications.sh @@ -60,7 +60,7 @@ aggregatesizediffpc=$(echo "scale=5;$aggregatesizediff/$previousaggregatesize" | # -> Finally, get a git log between those two dates (epoch) in data repo currenttagdate=$(git --work-tree=$sharedwsdir/$repoproducts --git-dir=$sharedwsdir/$repoproducts/.git log -1 $currenttag --format=%ct) previoustagdate=$(git --work-tree=$sharedwsdir/$repoproducts --git-dir=$sharedwsdir/$repoproducts/.git log -1 $previoustag --format=%ct) -gitlog=$(git --work-tree=$sharedwsdir/$repodata --git-dir=$sharedwsdir/$repodata/.git log --format="" --after=$previoustagdate --before=$currenttagdate) +gitlog=$(git --work-tree=$sharedwsdir/$repodata --git-dir=$sharedwsdir/$repodata/.git log --format="" --after=$previoustagdate --before=$currenttagdate | sed "s/'//g") gitlognumentries=$(git --work-tree=$sharedwsdir/$repodata --git-dir=$sharedwsdir/$repodata/.git log --format="%h" --after=$previoustagdate --before=$currenttagdate | wc -l | awk '{print $1}') # =====