git-remote-mediawiki: spelling fixes
Most of these were found using Lucas De Marchi's codespell tool. Others were pointed out by Eric Sunshine. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e1c3bf496f
commit
2582ab18e4
@ -28,7 +28,7 @@ use warnings;
|
||||
use constant SLASH_REPLACEMENT => "%2F";
|
||||
|
||||
# It's not always possible to delete pages (may require some
|
||||
# priviledges). Deleted pages are replaced with this content.
|
||||
# privileges). Deleted pages are replaced with this content.
|
||||
use constant DELETED_CONTENT => "[[Category:Deleted]]\n";
|
||||
|
||||
# It's not possible to create empty pages. New empty files in Git are
|
||||
@ -841,7 +841,7 @@ sub mw_import_ref {
|
||||
if ($fetch_from == 1 && $n == 0) {
|
||||
print STDERR "You appear to have cloned an empty MediaWiki.\n";
|
||||
# Something has to be done remote-helper side. If nothing is done, an error is
|
||||
# thrown saying that HEAD is refering to unknown object 0000000000000000000
|
||||
# thrown saying that HEAD is referring to unknown object 0000000000000000000
|
||||
# and the clone fails.
|
||||
}
|
||||
}
|
||||
@ -1067,7 +1067,7 @@ sub mw_push_file {
|
||||
my $file_content;
|
||||
if ($page_deleted) {
|
||||
# Deleting a page usually requires
|
||||
# special priviledges. A common
|
||||
# special privileges. A common
|
||||
# convention is to replace the page
|
||||
# with this content instead:
|
||||
$file_content = DELETED_CONTENT;
|
||||
|
Reference in New Issue
Block a user