Skip to content

Commit eced960

Browse files
committed
Harden retrieval of author list from Subversion
In order to get a list of authors from a Subversion repository, we extract the authors from the output of `svn log --xml`. We then try to filter out the author field by grepping for 'author'. This produces incorrect results in the case where a commit's message contains the word 'author'. Fix the issue by invoking `svn log --xml --quiet` instead, which suppresses the commit's message.
1 parent e95aba0 commit eced960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/09-git-and-other-scms/sections/import-svn.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To get a list of the author names that SVN uses, you can run this:
2222

2323
[source,console]
2424
----
25-
$ svn log --xml | grep author | sort -u | \
25+
$ svn log --xml --quiet | grep author | sort -u | \
2626
perl -pe 's/.*>(.*?)<.*/$1 = /'
2727
----
2828

0 commit comments

Comments
 (0)