packages: gitolite/gitolite.spec, gitolite/gitolite-mkdir.patch (NEW) - fix...

draenog draenog at pld-linux.org
Mon May 2 15:52:21 CEST 2011


Author: draenog                      Date: Mon May  2 13:52:21 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix for template directory without hooks subdirectory

---- Files affected:
packages/gitolite:
   gitolite.spec (1.21 -> 1.22) , gitolite-mkdir.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gitolite/gitolite.spec
diff -u packages/gitolite/gitolite.spec:1.21 packages/gitolite/gitolite.spec:1.22
--- packages/gitolite/gitolite.spec:1.21	Wed Apr 27 18:17:10 2011
+++ packages/gitolite/gitolite.spec	Mon May  2 15:52:16 2011
@@ -12,6 +12,7 @@
 Group:		Development/Tools
 Source0:	http://github.com/sitaramc/gitolite/tarball/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	6a5b0ba784f190ff2d94a7e0ad46fe3f
+Patch0:		%{name}-mkdir.patch
 URL:		http://github.com/sitaramc/gitolite
 BuildRequires:	perl-Text-Markdown
 BuildRequires:	rpm-perlprov
@@ -59,6 +60,8 @@
 mv sitaramc-gitolite-*/* .
 rm -rf sitaramc-gitolite-*
 
+%patch0 -p1
+
 rm src/gl-system-install
 
 echo %{version} > conf/VERSION
@@ -118,6 +121,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2011/05/02 13:52:16  draenog
+- fix for template directory without hooks subdirectory
+
 Revision 1.21  2011/04/27 16:17:10  draenog
 - VERSION file is used by info command
 

================================================================
Index: packages/gitolite/gitolite-mkdir.patch
diff -u /dev/null packages/gitolite/gitolite-mkdir.patch:1.1
--- /dev/null	Mon May  2 15:52:21 2011
+++ packages/gitolite/gitolite-mkdir.patch	Mon May  2 15:52:16 2011
@@ -0,0 +1,26 @@
+From 9217aafa0b50d3d9a1759df0f8bb605cbafd3f33 Mon Sep 17 00:00:00 2001
+From: Kacper Kornet <draenog at pld-linux.org>
+Date: Wed, 27 Apr 2011 21:29:21 +0100
+Subject: [PATCH 1/1] Create hooks directory if it is not created by git init
+
+If git hooks directory in template is empty, the .git/hooks is not
+created by git init. In this case it has to be created by gitolite.
+---
+ src/gitolite.pm |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/src/gitolite.pm b/src/gitolite.pm
+index c0581c8..b4602a2 100644
+--- a/src/gitolite.pm
++++ b/src/gitolite.pm
+@@ -135,6 +135,7 @@ sub log_it {
+ sub ln_sf
+ {
+     my($srcdir, $glob, $dstdir) = @_;
++    mkdir $dstdir unless (-d $dstdir);
+     for my $hook ( glob("$srcdir/$glob") ) {
+         $hook =~ s/$srcdir\///;
+         unlink                   "$dstdir/$hook";
+-- 
+1.7.5
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gitolite/gitolite.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list