diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-01-23 11:35:53 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-02-23 00:57:09 -0800 |
commit | 536c4b09370f3f443fbe87284d2378fd21f94350 (patch) | |
tree | 42a5d7e1d4b6c64712923f0ac2771b66ac658a0a /git-svn.perl | |
parent | 07a1c95045a8c4983d3868f6070d9fa9ba5ff596 (diff) | |
download | git-536c4b09370f3f443fbe87284d2378fd21f94350.tar.gz git-536c4b09370f3f443fbe87284d2378fd21f94350.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl index 2e3d35527..a70e7b911 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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*$!) { |