[csw-devel] SF.net SVN: gar:[11736] csw/mgar/pkg/git/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Nov 27 15:39:51 CET 2010


Revision: 11736
          http://gar.svn.sourceforge.net/gar/?rev=11736&view=rev
Author:   bdwalton
Date:     2010-11-27 14:39:50 +0000 (Sat, 27 Nov 2010)

Log Message:
-----------
git: patch the contributed hook script to use csw bash and set PATH

Modified Paths:
--------------
    csw/mgar/pkg/git/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/git/trunk/files/0004-Use-bash-and-set-PATH-in-contributed-hook-file.patch

Modified: csw/mgar/pkg/git/trunk/Makefile
===================================================================
--- csw/mgar/pkg/git/trunk/Makefile	2010-11-27 14:34:17 UTC (rev 11735)
+++ csw/mgar/pkg/git/trunk/Makefile	2010-11-27 14:39:50 UTC (rev 11736)
@@ -89,6 +89,7 @@
 PATCHFILES += 0001-Update-path-in-documentation-to-be-CSW-proper.patch
 PATCHFILES += 0002-Alter-the-value-of-_PATH_DEFPATH-when-paths.h-not-pr.patch
 PATCHFILES += 0003-Update-path-in-sample-hook-file.patch
+PATCHFILES += 0004-Use-bash-and-set-PATH-in-contributed-hook-file.patch
 
 fdirs = $(bindir_install) $(mandir) $(libexecdir_install)
 define _git_files

Added: csw/mgar/pkg/git/trunk/files/0004-Use-bash-and-set-PATH-in-contributed-hook-file.patch
===================================================================
--- csw/mgar/pkg/git/trunk/files/0004-Use-bash-and-set-PATH-in-contributed-hook-file.patch	                        (rev 0)
+++ csw/mgar/pkg/git/trunk/files/0004-Use-bash-and-set-PATH-in-contributed-hook-file.patch	2010-11-27 14:39:50 UTC (rev 11736)
@@ -0,0 +1,36 @@
+From 97a0f24b6e27759fc1f22fc513fc7a7133cfd749 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Sat, 27 Nov 2010 15:37:56 +0100
+Subject: [PATCH] Use bash and set PATH in contributed hook file
+
+Now that we're shipping this contributed hook, we should give it a chance
+of running in an OpenCSW environment.
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ contrib/hooks/post-receive-email |    5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
+index 0085086..8601a84 100755
+--- a/contrib/hooks/post-receive-email
++++ b/contrib/hooks/post-receive-email
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/opt/csw/bin/bash
+ #
+ # Copyright (c) 2007 Andy Parkins
+ #
+@@ -68,6 +68,9 @@
+ # give information for debugging.
+ #
+ 
++# Added by OpenCSW to ensure we have a sane place to find our git
++PATH=/opt/csw/bin:$PATH
++
+ # ---------------------------- Functions
+ 
+ #
+-- 
+1.7.3
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list