mirror of
https://github.com/git/git.git
synced 2024-10-21 08:08:16 +02:00
git-remote-mediawiki: trivial fixes
Fix a whitespace issue (no space before :) and remove unused %status in mw_push. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
93f0d33818
commit
ac86ec0f5e
@ -656,7 +656,7 @@ sub mw_push_file {
|
|||||||
$mediawiki->{error}->{code} .
|
$mediawiki->{error}->{code} .
|
||||||
' from mediwiki: ' . $mediawiki->{error}->{details};
|
' from mediwiki: ' . $mediawiki->{error}->{details};
|
||||||
$newrevid = $result->{edit}->{newrevid};
|
$newrevid = $result->{edit}->{newrevid};
|
||||||
print STDERR "Pushed file : $new_sha1 - $title\n";
|
print STDERR "Pushed file: $new_sha1 - $title\n";
|
||||||
} else {
|
} else {
|
||||||
print STDERR "$complete_file_name not a mediawiki file (Not pushable on this version of git-remote-mediawiki).\n"
|
print STDERR "$complete_file_name not a mediawiki file (Not pushable on this version of git-remote-mediawiki).\n"
|
||||||
}
|
}
|
||||||
@ -666,7 +666,6 @@ sub mw_push_file {
|
|||||||
sub mw_push {
|
sub mw_push {
|
||||||
# multiple push statements can follow each other
|
# multiple push statements can follow each other
|
||||||
my @refsspecs = (shift, get_more_refs("push"));
|
my @refsspecs = (shift, get_more_refs("push"));
|
||||||
my %status;
|
|
||||||
my $pushed;
|
my $pushed;
|
||||||
for my $refspec (@refsspecs) {
|
for my $refspec (@refsspecs) {
|
||||||
my ($force, $local, $remote) = $refspec =~ /^(\+)?([^:]*):([^:]*)$/
|
my ($force, $local, $remote) = $refspec =~ /^(\+)?([^:]*):([^:]*)$/
|
||||||
|
Loading…
Reference in New Issue
Block a user