Re: [RFC/PATCH] git-remote-mediawiki: reset private ref after non-dumb push
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Aug 21, 2013, 19:48 UTC
- Message-ID
- <CAMP44s2u1edB3g9GK_kak3Nc-fe4TDBjFU_JqskBW+J0Q9BJrg@mail.gmail.com>
- In-Reply-To
- <1376400700-8863-1-git-send-email-Matthieu.Moy@imag.fr>
On Tue, Aug 13, 2013 at 8:31 AM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 18 quoted lines
> > Git-mediawiki's "dumb push" sends the local revisions to the remote wiki, > but does not update the local metadata to reflect the push (hence, the > next pull will have to re-import the exported revisions). > > The previous implementation was simply omitting the update to the private > ref after a dumb push. This was broken by 664059fb62 (Felipe Contreras, > Apr 17 2013, transport-helper: update remote helper namespace), which > does an automatic update of the private ref (not just the > remote-tracking) on push. > > This patch fixes git-remote-mediawiki to reset the private ref after the > push is completed, cancelling the automatic update triggered by > 664059fb62. > > Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> > --- > Felipe: Is this the right fix for git-remote-mediawiki? Any better idea?
Why not keep track of the revisions yourself? You can have file where you store which was the last revision that was fetched.
-- Felipe Contreras