about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorThomas WeiƟschuh <thomas@t-8ch.de>2021-10-26 00:24:53 +0200
committerEric Wong <e@80x24.org>2021-10-25 22:45:58 +0000
commit9f3fb207c9daa13648f6d0f960e6fef922b55eab (patch)
treed962155aea804d72a631f08effb3544c47e99680 /t
parent2833f2adeb224a83d731deaa717e1969e5bf9e62 (diff)
downloadpublic-inbox-9f3fb207c9daa13648f6d0f960e6fef922b55eab.tar.gz
Diffstat (limited to 't')
-rw-r--r--t/index-git-times.t18
1 files changed, 10 insertions, 8 deletions
diff --git a/t/index-git-times.t b/t/index-git-times.t
index 3cfb99f4..52173396 100644
--- a/t/index-git-times.t
+++ b/t/index-git-times.t
@@ -7,6 +7,7 @@ use Test::More;
 use PublicInbox::TestCommon;
 use PublicInbox::Config;
 use PublicInbox::Admin;
+use PublicInbox::Import;
 use File::Path qw(remove_tree);
 
 require_mods(qw(DBD::SQLite Search::Xapian));
@@ -16,27 +17,28 @@ my ($tmpdir, $for_destroy) = tmpdir();
 local $ENV{PI_CONFIG} = "$tmpdir/cfg";
 my $v1dir = "$tmpdir/v1";
 my $addr = 'x@example.com';
+my $default_branch = PublicInbox::Import::default_branch;
 run_script(['-init', '--indexlevel=medium', 'v1', $v1dir,
                 'http://example.com/x', $addr])
         or die "init failed";
 
 {
-        my $data = <<'EOF';
+        my $data = <<"EOF";
 blob
 mark :1
 data 133
-From: timeless <t@example.com>
-To: x <x@example.com>
+From: timeless <t\@example.com>
+To: x <x\@example.com>
 Subject: can I haz the time?
-Message-ID: <19700101000000-1234@example.com>
+Message-ID: <19700101000000-1234\@example.com>
 
 plz
 
-reset refs/heads/master
-commit refs/heads/master
+reset $default_branch
+commit $default_branch
 mark :2
-author timeless <t@example.com> 749520000 +0100
-committer x <x@example.com> 1285977600 -0100
+author timeless <t\@example.com> 749520000 +0100
+committer x <x\@example.com> 1285977600 -0100
 data 20
 can I haz the time?
 M 100644 :1 53/256f6177504c2878d3a302ef5090dacf5e752c