Skip to content

Commit

Permalink
git-svn: allow 'init' to work outside of tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong committed Feb 23, 2007
1 parent 07a1c95 commit 536c4b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ sub read_all_remotes {
}

sub verify_remotes_sanity {
return unless -d $ENV{GIT_DIR};
my %seen;
foreach (command(qw/config -l/)) {
if (m!^svn-remote\.(?:.+)\.fetch=.*:refs/remotes/(\S+)\s*$!) {
Expand Down

0 comments on commit 536c4b0

Please sign in to comment.