@matheusbsbs / matheus-bagliano / commits / 536c4b0937
Fork 0

git-svn: allow 'init' to work outside of tests

Tests always ran 'git init' before we ran so that repo-config would always have something to read. However that does not work in real-world situations where the user expects 'git svn init' to work without running 'git init' first. Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Jan 23, 2007 at 11:35 UTC 536c4b09370f3f443fbe87284d2378fd21f94350
1 file changed +1
git-svn.perl
+1
@@ -725,6 +725,7 @@ sub read_all_remotes {
725 }
726
727 sub verify_remotes_sanity {
728 + return unless -d $ENV{GIT_DIR};
729 my %seen;
730 foreach (command(qw/config -l/)) {
731 if (m!^svn-remote\.(?:.+)\.fetch=.*:refs/remotes/(\S+)\s*$!) {