Merge pull request #2835 from lcdservices/CRM-14334
[civicrm-core.git] / tools / scripts / git / commit-msg
CommitLineData
87caf473
TO
1#!/bin/bash
2
3# Note: This shell script should be designed and tested for cross-platform use
4
95be04e3
TO
5set -e
6
7if [ "$GIT_CANONICAL_REPO_NAME" = "civicrm-core" ]; then
8 PACKAGES="$GIT_DIR/../packages"
9else
10 PACKAGES="$GIT_DIR/../../packages"
11fi
12
13if [ -f "$PACKAGES/git-footnote/bin/git-footnote" ]; then
14 FILE="$1"
15 TMPFILE="$1.jira"
16 cp -p "$FILE" "$TMPFILE"
fcbacf71 17 $PACKAGES/git-footnote/bin/git-footnote CRM https://issues.civicrm.org/jira < "$TMPFILE" > "$FILE"
95be04e3
TO
18 rm -f "$TMPFILE"
19fi