git: add --with-brewed-svn option.

Fixes #29641.
Fixes #30255.