From 0069d1b85c45fd757e401cd018099c69b3ba9f24 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Oct 2019 07:21:57 +0000 Subject: init: favor --skip-epoch instead of --skip Since I intend to add support for --skip-artnum, disambiguating the long option name makes sense. We'll support --skip indefinitely for compatibility. --- t/init.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/init.t b/t/init.t index e2dd306d..667b09fe 100644 --- a/t/init.t +++ b/t/init.t @@ -86,15 +86,15 @@ SKIP: { for (1..2) { @cmd = (pi_init, '-V2', '-S1', 'skip1', "$tmpdir/skip1", qw(http://example.com/skip1 skip1@example.com)); - is(system(@cmd), 0, "--skip 1"); + is(system(@cmd), 0, "--skip-epoch 1"); my $gits = [ glob("$tmpdir/skip1/git/*.git") ]; is_deeply($gits, ["$tmpdir/skip1/git/1.git"], 'skip OK'); } - @cmd = (pi_init, '-V2', '--skip=2', 'skip2', "$tmpdir/skip2", + @cmd = (pi_init, '-V2', '--skip-epoch=2', 'skip2', "$tmpdir/skip2", qw(http://example.com/skip2 skip2@example.com)); - is(system(@cmd), 0, "--skip 2"); + is(system(@cmd), 0, "--skip-epoch 2"); my $gits = [ glob("$tmpdir/skip2/git/*.git") ]; is_deeply($gits, ["$tmpdir/skip2/git/2.git"], 'skipping 2 works, too'); } -- cgit v1.2.3-24-ge0c7