[Bps-public-commit] BPS git mailer tools branch, master, updated. 29fe2e21f19a1115c916b65a448be01bb640028e

jesse jesse at bestpractical.com
Thu Feb 19 11:00:08 EST 2009


The branch, master has been updated
       via  29fe2e21f19a1115c916b65a448be01bb640028e (commit)
      from  a44207c2f4a6033cc74a32b0b4d6ac727b4ce4f3 (commit)

Summary of changes:
 create-repo |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 29fe2e21f19a1115c916b65a448be01bb640028e
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Feb 19 10:59:58 2009 -0500

    Make a repo we can use

diff --git a/create-repo b/create-repo
index aef0e63..8b24a33 100755
--- a/create-repo
+++ b/create-repo
@@ -14,11 +14,26 @@ if [ "$?" == "0" ]; then
     exit;
 fi
 
+TEMP=$$
+
 ssh fsck.com "\
     mkdir /git/$REPO.git && \
     cd /git/$REPO.git  && \
     git init --shared --bare  && \
     chgrp -R rt-pub-svn /git/$REPO.git && \
-    cd hooks && \
-    echo \". /usr/local/git-mailer/post-receive-email\" >> post-receive"
+    mkdir /tmp/git-init-$TEMP && \
+    cd /tmp/git-init-$TEMP && \
+    git clone /git/$REPO.git && \
+    cd $REPO && \
+    touch .gitignore && \
+    git add .gitignore && \
+    git commit -m 'First post' && \
+    git push origin master && \
+    cd /git/$REPO.git/hooks && \
+    rm -rf /tmp/git-init-$TEMP && \
+    echo \". /usr/local/git-mailer/post-receive-email\" >> post-receive && \
+    git config --add hooks.mailinglist bps-internal at lists.bestpractical.com && \
+    git config --add hooks.emailprefix '' && \
+    git config --add hooks.showrev \"git show -C %s; echo \"
+    "
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list