mk-drupal-test-site - When writing out setup.conf, include both the old SVNROOT and...
[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"
17 $PACKAGES/git-footnote/bin/git-footnote CRM http://issues.civicrm.org/jira < "$TMPFILE" > "$FILE"
18 rm -f "$TMPFILE"
19fi