[Bps-public-commit] git-mailer branch, master, updated. 201366e88ecae7ff82c32fb165c927e43e2190c5

clkao at bestpractical.com clkao at bestpractical.com
Thu Mar 11 07:35:09 EST 2010


The branch, master has been updated
       via  201366e88ecae7ff82c32fb165c927e43e2190c5 (commit)
      from  b0b2244db1ce5eccbfbdadea84403843954f5a03 (commit)

Summary of changes:
 svn-to-git |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 201366e88ecae7ff82c32fb165c927e43e2190c5
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Thu Mar 11 20:35:01 2010 +0800

    use authors.txt from somewhere not jesse's home directory.

diff --git a/svn-to-git b/svn-to-git
index 0902a6c..fad0a6d 100755
--- a/svn-to-git
+++ b/svn-to-git
@@ -8,8 +8,9 @@ if [ "foo$REPO" == "foo" ]; then
 fi
 
 GIT_REPO=`perl -e"print lc '$REPO'"`
+PWD=`pwd`
 
-echo "Migrating svn repo $REPO to git repo  $GIT_REPO"
+echo "Migrating svn repo $REPO to git repo  $GIT_REPO with $PWD/authors.txt"
 
 svn ls svn://svn.bestpractical.com/${REPO}/trunk 2>/dev/null && OPTS="--stdlayout"
 
@@ -22,7 +23,7 @@ fi
 
 
 
-git svn clone $OPTS --prefix svn/ --authors-file=/Users/jesse/git/bps/git-mailer.git/authors.txt  \
+git svn clone $OPTS --prefix svn/ --authors-file=${PWD}/authors.txt  \
     svn://svn.bestpractical.com/${REPO} /tmp/svn-${REPO} && \
 cd /tmp/svn-${REPO} && \
 sh -c "$CLEANUP_CMD" && \

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



More information about the Bps-public-commit mailing list