t/git-untrusted.t: Fix redundant declaration

Signed-off-by: Simon McVittie <smcv@debian.org>
master
Simon McVittie 2017-10-01 16:24:48 +01:00
parent 0a04d9a5f1
commit 6e5f320ab8
1 changed files with 1 additions and 1 deletions

View File

@ -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');