Created page with "== Usare Git per il download delle estensioni MediaWiki=="
← Older revision
Revision as of 17:20, 16 April 2014
(9 intermediate revisions by the same user not shown)
Line 16:
Line 16:
You can currently download MediaWiki core (phase3 on SVN) using Git, as well as any extension currently installed on the Wikimedia Foundation server cluster. By July 2013, all extensions will either be available using Git or move to alternate version control hosts.
You can currently download MediaWiki core (phase3 on SVN) using Git, as well as any extension currently installed on the Wikimedia Foundation server cluster. By July 2013, all extensions will either be available using Git or move to alternate version control hosts.
−
The
first
step
is
to
clone
the
MediaWiki
repository.
This
may
take
awhile
.
+
Il
primo
passo
è
quello
di
clonare
il
repository
(deposito) MediaWiki
.
Potrebbe richiedere un
po'
di
tempo
.
Inserisci ciò che segue nella tua linea di comando:
Inserisci ciò che segue nella tua linea di comando:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git
−
In
the
case
that you see
"The requested URL returned error: 403"
or
"error: The requested URL returned error: 403 while accessing https://gerrit.wikimedia.org/r/p/mediawiki/core.git"
you
need
to
check
your
git
client
version
+
Nel
caso
tu
vedi
"The requested URL returned error: 403"
o
"error: The requested URL returned error: 403 while accessing https://gerrit.wikimedia.org/r/p/mediawiki/core.git"
hai
bisogno
di
controllare
la
versione del
client
di git
git --version
git --version
e l'aggiornamento almeno a git 1.7, versioni 1:1.7.2.3-2.2~bpo50+1, 1.7.9.2 e 1.7.9.6 sono funzionanti.<ref>http://grokbase.com/t/gg/android-building/123wxqjxmq/the-requested-url-returned-error-403</ref>
e l'aggiornamento almeno a git 1.7, versioni 1:1.7.2.3-2.2~bpo50+1, 1.7.9.2 e 1.7.9.6 sono funzionanti.<ref>http://grokbase.com/t/gg/android-building/123wxqjxmq/the-requested-url-returned-error-403</ref>
Line 46:
Line 46:
===== MediaWiki tags (versione stabile) =====
===== MediaWiki tags (versione stabile) =====
−
Alternatively
,
specific
stable
versions
of
MediaWiki
are
tracked
using
'
tags
'.
These
are
analogous
to
the
tarball
releases
.
You
can
see
the
versions
available
with
:
+
In alternativa
,
versioni
stabili
specifiche
di
MediaWiki
vengono
segnate
con
'
tag
'.
Queste
sono
le
stesse
delle
versioni
tarball
.
È
possibile
visualizzare
le
versioni
disponibili
con
:
git tag -l | sort -V
git tag -l | sort -V
Using non GNU sort command, such as on Mac OS X, you have to rely on the good old separators:
Using non GNU sort command, such as on Mac OS X, you have to rely on the good old separators:
Line 76:
Line 76:
I cambiamenti verranno eseguiti in automatico e sarà tutto pronto per partire.
I cambiamenti verranno eseguiti in automatico e sarà tutto pronto per partire.
−
==
Using
Git
to
download
MediaWiki
extensions
==
+
==
Usare
Git
per il
download
delle
estensioni
MediaWiki
==
=== Download ===
=== Download ===
Line 83:
Line 83:
: ''<EXT> should be replaced with the name of the extension you want to download, without spaces. For {{ll|Extension:TitleKey|Extension:TitleKey}}, it would be TitleKey. (case sensitive!)''
: ''<EXT> should be replaced with the name of the extension you want to download, without spaces. For {{ll|Extension:TitleKey|Extension:TitleKey}}, it would be TitleKey. (case sensitive!)''
−
Download
and
clone
an
extension
from
Git:
+
Scarica
e
clona
un
estensione
da
Git:
cd /path/to/extensions
cd /path/to/extensions
Line 90:
Line 90:
[[Developer access|Developers]] clone with:
[[Developer access|Developers]] clone with:
git clone <nowiki>ssh://</nowiki><USERNAME>@gerrit.wikimedia.org:29418/mediawiki/extensions/<EXT>.git
git clone <nowiki>ssh://</nowiki><USERNAME>@gerrit.wikimedia.org:29418/mediawiki/extensions/<EXT>.git
−
Source
code
can
be
inspected
with
:
+
Il
codice
sorgente
può
essere
controllato con
:
<pre style="white-space: pre-wrap;">https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/<EXT>.git;a=tree;h=refs/heads/master;hb=master</pre>
<pre style="white-space: pre-wrap;">https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/<EXT>.git;a=tree;h=refs/heads/master;hb=master</pre>
Line 96:
Line 96:
=== Scarica tutte le estensioni ===
=== Scarica tutte le estensioni ===
−
If
you
prefer
to have
'
'all'
'
MediaWiki
extensions
that
are
at
gerrit.wikimedia.org
checked
out
to
your
machine,
do
the
following
:
+
Se
si
preferisce
avere
'
tutte
'
le
estensioni
MediaWiki
che
sono su
gerrit.wikimedia.org
,
controlla
il
tuo
computer ed effettua
le
seguenti
operazioni
:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions.git
Line 110:
Line 110:
== Vedi anche ==
== Vedi anche ==
−
* {{ll|Migrating from SVN to Git|
Migrating
from
SVN
to
Git}}
+
* {{ll|Migrating from SVN to Git|
Migrazione
da
SVN
a
Git}}
−
* {{ll|Nightlies|Nightlies}},
an
alternate
to
downloading
from
Git
+
* {{ll|Nightlies|Nightlies}},
un
alternativa
per
scaricare
da
Git
−
==
References
==
+
==
Riferimenti
==
<references />
<references />