added commit message

This commit is contained in:
Pedro Cabral
2026-07-17 15:56:43 +02:00
parent 052bbeed39
commit 575c05e65d

View File

@@ -29,6 +29,7 @@ if ! git rev-parse --verify --quiet "${COMMIT}^{commit}" >/dev/null; then
fi
COMMIT="$(git rev-parse --short "$COMMIT")"
COMMIT_MSG="$(git log -1 --pretty=format:%s "$COMMIT")"
PARENT_COUNT="$(git rev-list --parents -n 1 "$COMMIT" | wc -w | tr -d ' ')"
if [[ "$PARENT_COUNT" -gt 2 ]]; then
@@ -59,7 +60,7 @@ handle_error() {
trap handle_error ERR
echo -e "${BLUE}Replicating commit ${COMMIT} from '${START_BRANCH}' to local branches.${RESET}"
echo -e "${BLUE}Propagating commit ${BOLD}'${COMMIT}: ${COMMIT_MSG}'${RESET}${BLUE} from '${START_BRANCH}' to local branches.${RESET}"
while IFS= read -r BRANCH; do
if [[ "$BRANCH" == "$START_BRANCH" ]]; then