]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
t/git-untrusted.t: Fix redundant declaration
authorSimon McVittie <smcv@debian.org>
Sun, 1 Oct 2017 15:24:48 +0000 (16:24 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 1 Oct 2017 15:24:48 +0000 (16:24 +0100)
Signed-off-by: Simon McVittie <smcv@debian.org>
t/git-untrusted.t

index 285a242e8849aa5e17ab9bbed520101d929c976d..5fd2efb9eeac61c0498530ebdfbb954e9badc4e4 100755 (executable)
@@ -184,7 +184,7 @@ sub test {
        isnt($h->full_result(0), 0);
        is($out, '');
        like($err, qr{remote: <.*>staff only</.*> is locked and cannot be edited});
-       my $sha1 = run_git(['rev-list', '--max-count=1', 'HEAD'], chdir => "$tmp/repo.git");
+       $sha1 = run_git(['rev-list', '--max-count=1', 'HEAD'], chdir => "$tmp/repo.git");
        is($sha1, $allowed_sha1, 'proposed commit was not pushed');
        $sha1 = run_git(['rev-list', '--max-count=1', 'HEAD']);
        is($sha1, $allowed_sha1, 'proposed commit was not pushed');