about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-22 00:17:33 +0000
committerEric Wong <e@80x24.org>2015-12-22 00:58:13 +0000
commit4c2c2325d2948ec5340e2fcafbee798cf568f5fd (patch)
tree85dd6e48f4b7c658cb3eee12032143839000f218 /t
parentb140961420c0f240c9c3f55e83c52cfc3efa709d (diff)
downloadpublic-inbox-4c2c2325d2948ec5340e2fcafbee798cf568f5fd.tar.gz
We'll be using it for more than just cat-file.
Adding a `popen' API for internal use allows us to save a bunch
of code in other places.
Diffstat (limited to 't')
-rw-r--r--t/git.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/git.t b/t/git.t
index 4532921d..19fbef15 100644
--- a/t/git.t
+++ b/t/git.t
@@ -7,7 +7,7 @@ use File::Temp qw/tempdir/;
 my $dir = tempdir(CLEANUP => 1);
 use Cwd qw/getcwd/;
 
-use_ok 'PublicInbox::GitCatFile';
+use_ok 'PublicInbox::Git';
 {
         is(system(qw(git init -q --bare), $dir), 0, 'created git directory');
         my @cmd = ('git', "--git-dir=$dir", 'fast-import', '--quiet');
@@ -26,7 +26,7 @@ use_ok 'PublicInbox::GitCatFile';
 }
 
 {
-        my $gcf = PublicInbox::GitCatFile->new($dir);
+        my $gcf = PublicInbox::Git->new($dir);
         my $f = 'HEAD:foo.txt';
         my @x = $gcf->check($f);
         is(scalar @x, 3, 'returned 3 element array for existing file');
@@ -95,7 +95,7 @@ if (1) {
         is(0, $?, 'hashed object successfully');
         chomp $buf;
 
-        my $gcf = PublicInbox::GitCatFile->new($dir);
+        my $gcf = PublicInbox::Git->new($dir);
         my $rsize;
         is($gcf->cat_file($buf, sub {
                 $rsize = ${$_[1]};