Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from l3m/improvements-only
Browse files Browse the repository at this point in the history
Improvements only
  • Loading branch information
philipf committed Jan 21, 2013
2 parents 7a39085 + 983796e commit 2ed91d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions post-receive
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Post receive hook that intergrates to a FogBugz server.
# The commit message subject has to start with BUGZID: followed by the case number.
#
Expand Down Expand Up @@ -53,13 +53,13 @@ do

# Reached the end of the commit record, now process it.
if [ "${logentry:0:5}" == "~~EOR" ]; then
if [ "${commitSubject:0:7}" != "BUGZID:" ]; then
if [ `echo ${commitSubject:0:7} | tr '[:lower:]' '[:upper:]'` != "BUGZID:" ]; then
echo "Not a FogBugz commit message, do nothing with this commit"
echo
else
# This is a entry we want to send to FogBugz
# Split on the semicolon and retrieve the bug number
bugId=`echo $commitSubject | awk -F : '{print $2}'`
bugId=`echo $commitSubject | awk -F : '{print $2}' | tr -d ' '`
echo "bugId=$bugId"

# Find all the files belonging to this commit with their prev and current file hashes
Expand Down

0 comments on commit 2ed91d0

Please sign in to comment.