File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 74
74
75
75
echo -e " \nListing new commits in the source branch..."
76
76
git log --graph --pretty=format:' %Cred%h%Creset - %Cblue%an%Creset - %Cgreen%cd%Creset %n%s %b' --abbrev-commit --date=format:' %Y-%m-%d %H:%M:%S' " origin/${TARGET_BRANCH} ...origin/${SOURCE_BRANCH} "
77
- GIT_LOG=$( git log --graph --pretty=format:' %Cred%h%Creset - %Cblue%an%Creset - %Cgreen%cd%Creset %n%s %b' --abbrev-commit --date=format:' %Y-%m-%d %H:%M:%S' --no-color " origin/${TARGET_BRANCH} ...origin/${SOURCE_BRANCH} " )
77
+ GIT_LOG=$( git log --graph --pretty=format:' %Cred%h%Creset - %Cblue%an%Creset - %Cgreen%cd%Creset %n%s%n %b' --abbrev-commit --date=format:' %Y-%m-%d %H:%M:%S' --no-color " origin/${TARGET_BRANCH} ...origin/${SOURCE_BRANCH} " )
78
78
GIT_LOG=$( echo -e " ${GIT_LOG} " | sed ' s|#|^HaSz^|g' | sed ' :a;N;$!ba; s/\n/^NowALiNiA^/g' )
79
79
80
80
echo -e " \n\nListing commits subjects in the source branch..."
114
114
if [[ " ${INPUT_GET_DIFF} " == " true" ]]; then
115
115
echo -e " \nReplacing predefined fields with git information..."
116
116
# little hack to trick sed to work with multiline
117
- # also backwards compatible wtih old replacement strings
117
+ # also backwards compatible with old replacement strings
118
118
TEMPLATE=$( echo -e " ${TEMPLATE} " | sed ' :a;N;$!ba; s#<!-- Diff summary - START -->.*<!-- Diff summary - END -->#<!-- Diff summary - START -->\n' " ${GIT_SUMMARY} " ' \n<!-- Diff summary - END -->#g' )
119
119
TEMPLATE=$( echo -e " ${TEMPLATE} " | sed ' :a;N;$!ba; s#<!-- Diff commits -->#<!-- Diff commits - START -->\n' " ${GIT_LOG} " ' \n<!-- Diff commits - END -->#g' )
120
120
TEMPLATE=$( echo -e " ${TEMPLATE} " | sed ' :a;N;$!ba; s#<!-- Diff commits - START -->.*<!-- Diff commits - END -->#<!-- Diff commits - START -->\n' " ${GIT_LOG} " ' \n<!-- Diff commits - END -->#g' )
You can’t perform that action at this time.
0 commit comments