git-central.git
15 years agoOnly one branch push/recive.
Stephen Haberman [Sat, 21 Jun 2008 16:19:29 +0000 (11:19 -0500)]
Only one branch push/recive.

15 years agoPrefer rebase. Nice.
Stephen Haberman [Fri, 20 Jun 2008 18:29:39 +0000 (13:29 -0500)]
Prefer rebase. Nice.

15 years agoFirst test for emails.
Stephen Haberman [Fri, 20 Jun 2008 17:04:48 +0000 (12:04 -0500)]
First test for emails.

15 years agoHardcode the '/srv/git/hooks' directory for now.
Stephen Haberman [Fri, 20 Jun 2008 14:58:27 +0000 (09:58 -0500)]
Hardcode the '/srv/git/hooks' directory for now.

15 years ago-ticket > -trac.
Stephen Haberman [Fri, 20 Jun 2008 14:55:45 +0000 (09:55 -0500)]
-ticket > -trac.

15 years agoShow pre-receive-stable stopping following commands if used via a shim.
Stephen Haberman [Fri, 20 Jun 2008 14:48:44 +0000 (09:48 -0500)]
Show pre-receive-stable stopping following commands if used via a shim.

15 years agoAdd pre-receive-stable to protect stable from non-qa'd commits.
Stephen Haberman [Fri, 20 Jun 2008 06:08:37 +0000 (01:08 -0500)]
Add pre-receive-stable to protect stable from non-qa'd commits.

15 years agoRemove extra newline.
Stephen Haberman [Fri, 20 Jun 2008 05:14:18 +0000 (00:14 -0500)]
Remove extra newline.

15 years agoDon't enforce log messages for merge commitss.
Stephen Haberman [Fri, 20 Jun 2008 04:51:44 +0000 (23:51 -0500)]
Don't enforce log messages for merge commitss.

15 years agoThe commit-msg misses merges somehow. Which I guess is good for this hook.
Stephen Haberman [Fri, 20 Jun 2008 04:43:02 +0000 (23:43 -0500)]
The commit-msg misses merges somehow. Which I guess is good for this hook.

15 years agoTest cleanup.
Stephen Haberman [Fri, 20 Jun 2008 04:42:40 +0000 (23:42 -0500)]
Test cleanup.

15 years agoRename 'client' commit-msg.
Stephen Haberman [Fri, 20 Jun 2008 04:42:13 +0000 (23:42 -0500)]
Rename 'client' commit-msg.

15 years agoTest ranges of tickets.
Stephen Haberman [Fri, 20 Jun 2008 04:00:00 +0000 (23:00 -0500)]
Test ranges of tickets.

15 years agoTest new branches--can't use rev-parse yet as the ref doesn't exist.
Stephen Haberman [Fri, 20 Jun 2008 03:48:02 +0000 (22:48 -0500)]
Test new branches--can't use rev-parse yet as the ref doesn't exist.

15 years agoTest branch creation--turns out we still need to only log new commits to avoid valida...
Stephen Haberman [Fri, 20 Jun 2008 01:39:41 +0000 (20:39 -0500)]
Test branch creation--turns out we still need to only log new commits to avoid validating everything back to the rev 0.

15 years agoTake out the extra space when going to a file.
Stephen Haberman [Fri, 20 Jun 2008 01:32:21 +0000 (20:32 -0500)]
Take out the extra space when going to a file.

15 years agoTest the re being on the second line.
Stephen Haberman [Fri, 20 Jun 2008 01:31:29 +0000 (20:31 -0500)]
Test the re being on the second line.

15 years agoTest using the pre-receive -> pre-receive-ticket shim.
Stephen Haberman [Fri, 20 Jun 2008 01:29:58 +0000 (20:29 -0500)]
Test using the pre-receive -> pre-receive-ticket shim.

15 years agoServer side (non-trac) commit message enforcement.
Stephen Haberman [Fri, 20 Jun 2008 01:21:29 +0000 (20:21 -0500)]
Server side (non-trac) commit message enforcement.

15 years agoLet in no ticket as well.
Stephen Haberman [Fri, 20 Jun 2008 00:28:31 +0000 (19:28 -0500)]
Let in no ticket as well.

15 years agoBorrow the git test harness to test the commit message.
Stephen Haberman [Fri, 20 Jun 2008 00:24:49 +0000 (19:24 -0500)]
Borrow the git test harness to test the commit message.

15 years agoAdd -i so we are case insensitive.
Stephen Haberman [Fri, 20 Jun 2008 00:24:34 +0000 (19:24 -0500)]
Add -i so we are case insensitive.

15 years agoNaive client-side ticket check.
Stephen Haberman [Thu, 19 Jun 2008 22:54:14 +0000 (17:54 -0500)]
Naive client-side ticket check.

15 years agoMove the trac hook around to parallelize with post-receive-email.
Stephen Haberman [Thu, 19 Jun 2008 22:48:59 +0000 (17:48 -0500)]
Move the trac hook around to parallelize with post-receive-email.

15 years agoOur changes to the email script.
Stephen Haberman [Thu, 19 Jun 2008 18:07:23 +0000 (13:07 -0500)]
Our changes to the email script.

- Branch create: reverse order of new log messages
- Branch create: add summary of changes with patch output
- Branch update: reverse order of new log messages
- Branch update: include patch output in summary of changes
- Use msmtp instead of sendmail

index 4136895..9fa133b 100644
--- a/server/post-receive-email
+++ b/server/post-receive-email
@@ -230,8 +230,12 @@ generate_create_branch_email()
  # (see generate_update_branch_email for the explanation of this
  # command)
  git rev-parse --not --branches | grep -v $(git rev-parse $refname) |
- git rev-list --pretty --stdin $newrev
+ git rev-list --pretty --reverse --stdin $newrev
  echo $LOGEND
+
+ echo ""
+ echo "Summary of changes:"
+ git diff-tree --stat -p $newrev
 }

 #
@@ -391,7 +395,7 @@ generate_update_branch_email()
  echo ""
  echo $LOGBEGIN
  git rev-parse --not --branches | grep -v $(git rev-parse $refname) |
- git rev-list --pretty --stdin $oldrev..$newrev
+ git rev-list --reverse --pretty --stdin $oldrev..$newrev

  # XXX: Need a way of detecting whether git rev-list actually
  # outputted anything, so that we can issue a "no new
@@ -411,7 +415,7 @@ generate_update_branch_email()
  # non-fast forward updates.
  echo ""
  echo "Summary of changes:"
- git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
+ git diff-tree --stat -p --find-copies-harder $oldrev..$newrev
 }

 #
@@ -596,7 +600,8 @@ send_mail()
  if [ -n "$envelopesender" ]; then
  /usr/sbin/sendmail -t -f "$envelopesender"
  else
- /usr/sbin/sendmail -t
+ # /usr/sbin/sendmail -t
+ /home/BIPFS/shaberman/local/bin/msmtp --file=/srv/git/hooks/msmtp.conf -t
  fi
 }

15 years agoOriginal script from git contrib.
Stephen Haberman [Thu, 19 Jun 2008 18:01:44 +0000 (13:01 -0500)]
Original script from git contrib.

15 years agoWe don't need the msmtp.log.
Stephen Haberman [Thu, 19 Jun 2008 18:00:40 +0000 (13:00 -0500)]
We don't need the msmtp.log.

15 years agoSet to 'Initial QA' instead of 'QA'.
Stephen Haberman [Thu, 19 Jun 2008 22:19:39 +0000 (17:19 -0500)]
Set to 'Initial QA' instead of 'QA'.

15 years agoInitial hooks.
Stephen Haberman [Thu, 19 Jun 2008 17:47:02 +0000 (12:47 -0500)]
Initial hooks.