Hi Gazda,

I saw you created  james/trunk/sandbox/git-branches/, but not sure why.

The 3 ways I can imagine to work with Apache James git repo are:

1. clone the git repo on your laptop, add a remote to your github, push to the defined remote

2. import your local svn to your github repo (will all the history).

3. remove all .svn folders from your local svn repo, and push this plain source to your github repo.

I would have gone for Option 3. which is quite to benefit from the diffs you have to show us without the history. Once OK, a diff (git diff) could be reapplied to the james svn.

Option 1. is should also be easy.

I already worked with Option 2. (svn to git) for another project, but the import process takes some long time and can give you surprises...

Of course, the james multi-project nature will not help you...

Thx, Eric


On 06/14/2012 10:40 AM, Jochen Gazda wrote:
Gentlemen,

is there anybody here who has managed it to create a working dir with git-svn?

I am trying to apply "Git for Apache committers" as decribed here
http://wiki.apache.org/general/GitAtApache . This is what I am doing:

-------8<--------------------
#!/bin/bash

set -x
set -e

# put your ASF user name here:
ASF_USER_NAME=
ASF_USER_EMAIL="$asf_user_n...@apache.org"

PROJECT_NAME="james"
TRUNK="current"

# created dummy branches and tags just to exclude the possibility that
git-svn needs them
BRANCHES="trunk/sandbox/git-branches"
TAGS="trunk/sandbox/git-tags"

git clone git://git.apache.org/"$PROJECT_NAME".git
cd "$PROJECT_NAME"/.git; wget http://git.apache.org/authors.txt; cd ..
git config svn.authorsfile ".git/authors.txt"
# check if your username and email are identical to those in the author file
# git config user.name
# git config user.email
# if they are not identical, set the ASF values locally
git config user.name "$ASF_USER_NAME"
git config user.email "$ASF_USER_EMAIL"
git svn init --prefix=origin/ --tags="$TAGS" --trunk="$TRUNK"
--branches="$BRANCHES"
https://svn.apache.org/repos/asf/"$PROJECT_NAME";
#git svn init --prefix=origin/
"https://svn.apache.org/repos/asf/$PROJECT_NAME/$TRUNK";
git svn rebase
-------8<--------------------

It is the last command "git svn rebase" that fails with this message:

   Unable to determine upstream SVN information from working tree history

Does anybody have an idea what is the problem here?

Best,

gazda

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to