[llvm-commits] [PATCH] Document how to maintain a git-svn clone of the LLVM git repositories

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jul 20 11:19:05 PDT 2011


On Jul 20, 2011, at 10:08 AM, NAKAMURA Takumi wrote:

> Jakob,
> 
> 2011/7/21 Jakob Stoklund Olesen <stoklund at 2pi.dk>:
>>> BTW, setting up authorsfile might be pain, but it should reduce
>>> accidental undesirable committing by git-svn fetch. (Please consider,
>>> what would happen if "-l" were missed on executing "git-svn rebase"?)
>> 
>> For those who don't know, the problem is that 'git svn dcommit' will create a different local commit hash than the git mirror if the two log messages are not exactly identical. Since the log message includes the committer's name and email, those must be identical as well. After committing, you need to pull from the git mirror to get the canonical hash.
>> 
>> I don't like any solution that depends on using an author file. It is simply too fragile to try to produce the same SHA-1 on the server and locally by having identical author files.
>> 
>> Please make sure your instructions deal with that issue in a robust way.
> 
> I don't assume the person should have the "authorsfile" identical to
> llvm.org/git.
> Simply, each authorsfile may have one line, his own entry. For example for me,
> 
> chapuni = NAKAMURA Takumi <geek4civic at gmail.com>
> 
> git-svn fetch (and fetching triggered by git-svn dcommit) will reject
> (and stop) 3rd person's commits.
> Then, the person can know he would need "git-pull".

What happens if your spell your name differently that the server does?




More information about the llvm-commits mailing list