@matheusbsbs / matheus-bagliano / commits / 540424b263
Fork 0

git-svn: avoid warning when run without arguments

While we're in the area, finish writing a halfway-written comment describing what that block does... Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Dec 19, 2007 at 00:31 UTC 540424b263d626aa762757a31ca9b4becc7fb513
1 file changed +2 -2
git-svn.perl
+2 -2
@@ -197,8 +197,8 @@ for (my $i = 0; $i < @ARGV; $i++) {
197 }
198 };
199
200 -# make sure we're always running
201 -unless ($cmd =~ /(?:clone|init|multi-init)$/) {
200 +# make sure we're always running at the top-level working directory
201 +unless ($cmd && $cmd =~ /(?:clone|init|multi-init)$/) {
202 unless (-d $ENV{GIT_DIR}) {
203 if ($git_dir_user_set) {
204 die "GIT_DIR=$ENV{GIT_DIR} explicitly set, ",