OSDN Git Service

git-remote-mediawiki: no need to update private ref in non-dumb push
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Mon, 2 Sep 2013 07:19:48 +0000 (09:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2013 18:58:17 +0000 (11:58 -0700)
We used to update the private ref ourselves, but this update is now
done by default since 664059fb (transport-helper: update remote
helper namespace, 2013-04-17).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/git-remote-mediawiki.perl

index 22300a1..c9a4805 100755 (executable)
@@ -1214,7 +1214,6 @@ sub mw_push_revision {
                }
                if (!$dumb_push) {
                        run_git(qq(notes --ref=${remotename}/mediawiki add -f -m "mediawiki_revision: ${mw_revision}" ${sha1_commit}));
-                       run_git(qq(update-ref -m "Git-MediaWiki push" refs/mediawiki/${remotename}/master ${sha1_commit} ${sha1_child}));
                }
        }