Skip to content
Snippets Groups Projects
Commit 79714f84 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #263 from totten/jira-commit-msg

CRM-12109 - Call git-footnote in commit-msg hook
parents cb49d23b 95be04e3
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ P=`dirname $0`
ORIGPWD=`pwd`
# List of files to exclude from all tarballs
DM_EXCLUDES=".git .svn packages/_ORIGINAL_ packages/SeleniumRC packages/PHPUnit packages/PhpDocumentor packages/SymfonyComponents packages/amavisd-new"
DM_EXCLUDES=".git .svn packages/_ORIGINAL_ packages/SeleniumRC packages/PHPUnit packages/PhpDocumentor packages/SymfonyComponents packages/amavisd-new packages/git-footnote"
for DM_EXCLUDE in $DM_EXCLUDES ; do
DM_EXCLUDES_RSYNC="--exclude=${DM_EXCLUDE} ${DM_EXCLUDES_RSYNC}"
done
......
......@@ -2,4 +2,18 @@
# Note: This shell script should be designed and tested for cross-platform use
# Reserved for future use
\ No newline at end of file
set -e
if [ "$GIT_CANONICAL_REPO_NAME" = "civicrm-core" ]; then
PACKAGES="$GIT_DIR/../packages"
else
PACKAGES="$GIT_DIR/../../packages"
fi
if [ -f "$PACKAGES/git-footnote/bin/git-footnote" ]; then
FILE="$1"
TMPFILE="$1.jira"
cp -p "$FILE" "$TMPFILE"
$PACKAGES/git-footnote/bin/git-footnote CRM http://issues.civicrm.org/jira < "$TMPFILE" > "$FILE"
rm -f "$TMPFILE"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment