Skip to content

Commit

Permalink
t9700: remove useless check
Browse files Browse the repository at this point in the history
t9700 used to check if the basename of the current directory is
'trash directory', the expensive way.

However, there is absolutely no good reason why this test should not
run in, say 'life is good' or 'i love tests'.  So remove the check
altogether.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Aug 9, 2008
1 parent 1fdf6ee commit ff30fff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions t/t9700/test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
BEGIN { use_ok('Git') }

# set up
our $repo_dir = "trash directory";
our $abs_repo_dir = Cwd->cwd;
die "this must be run by calling the t/t97* shell script(s)\n"
if basename(Cwd->cwd) ne $repo_dir;
ok(our $r = Git->repository(Directory => "."), "open repository");

# config
Expand Down

0 comments on commit ff30fff

Please sign in to comment.