From: Felipe Contreras Date: Wed, 21 Aug 2013 19:48:17 GMT Subject: Re: [RFC/PATCH] git-remote-mediawiki: reset private ref after non-dumb push Message-ID: In-Reply-To: <1376400700-8863-1-git-send-email-Matthieu.Moy@imag.fr> On Tue, Aug 13, 2013 at 8:31 AM, Matthieu Moy wrote: > > 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 > --- > 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