diff options
author | Andreas Heiduk <asheiduk@gmail.com> | 2018-03-24 10:20:46 (GMT) |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-04-05 19:22:06 (GMT) |
commit | cb427e9eb0243fe7a1a22ea3bd0a46b7410c0bf3 (patch) | |
tree | 018a79db4d49c4c477109839a3e6272fdcbe60c5 /t/t9130-git-svn-authors-file.sh | |
parent | 9c18398f8b75f34c2251224c9443b4e1271ff9ff (diff) | |
download | git-cb427e9eb0243fe7a1a22ea3bd0a46b7410c0bf3.zip git-cb427e9eb0243fe7a1a22ea3bd0a46b7410c0bf3.tar.gz git-cb427e9eb0243fe7a1a22ea3bd0a46b7410c0bf3.tar.bz2 |
git-svn: allow empty email-address using authors-prog and authors-file
The email address in --authors-file and --authors-prog can be empty but
git-svn translated it into a fictional email address in the form
jondoe <jondoe@6aafaa21e0fb4338a68ab372a049893d>
containing the SVN repository UUID. Now git-svn behaves like git-commit:
If the email is *explicitly* set to the empty string using '<>', the
commit does not contain an email address, only the name:
jondoe <>
Allowing to remove the email address *intentionally* prevents automatic
systems from sending emails to those fictional addresses and avoids
cluttering the log output with unnecessary stuff.
Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>
Signed-off-by: Eric Wong <e@80x24.org>
Diffstat (limited to 't/t9130-git-svn-authors-file.sh')
-rwxr-xr-x | t/t9130-git-svn-authors-file.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t9130-git-svn-authors-file.sh b/t/t9130-git-svn-authors-file.sh index 4126481..6af6daf 100755 --- a/t/t9130-git-svn-authors-file.sh +++ b/t/t9130-git-svn-authors-file.sh @@ -108,6 +108,20 @@ test_expect_success !MINGW 'fresh clone with svn.authors-file in config' ' ) ' +cat >> svn-authors <<EOF +ff = FFFFFFF FFFFFFF <> +EOF + +test_expect_success 'authors-file imported user without email' ' + svn_cmd mkdir -m aa/branches/ff --username ff "$svnrepo/aa/branches/ff" && + ( + cd aa-work && + git svn fetch --authors-file=../svn-authors && + git rev-list -1 --pretty=raw refs/remotes/origin/ff | \ + grep "^author FFFFFFF FFFFFFF <> " + ) + ' + test_debug 'GIT_DIR=gitconfig.clone/.git git log' test_done |