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>
This commit is contained in:
Eric Wong 2007-12-19 00:31:43 -08:00
Родитель 7fc35e0e94
Коммит 540424b263
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -197,8 +197,8 @@ for (my $i = 0; $i < @ARGV; $i++) {
} }
}; };
# make sure we're always running # make sure we're always running at the top-level working directory
unless ($cmd =~ /(?:clone|init|multi-init)$/) { unless ($cmd && $cmd =~ /(?:clone|init|multi-init)$/) {
unless (-d $ENV{GIT_DIR}) { unless (-d $ENV{GIT_DIR}) {
if ($git_dir_user_set) { if ($git_dir_user_set) {
die "GIT_DIR=$ENV{GIT_DIR} explicitly set, ", die "GIT_DIR=$ENV{GIT_DIR} explicitly set, ",