From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Drewery Subject: Re: [PATCH] Fix git-push --mirror also mirroring refs/remotes/ Date: Sun, 10 May 2009 15:50:54 -0500 Message-ID: <4A073E2E.6060403@shatow.net> References: <1241984136-2578-1-git-send-email-bryan@shatow.net> <200905102225.25508.markus.heidelberg@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: markus.heidelberg@web.de X-From: git-owner@vger.kernel.org Sun May 10 22:51:26 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3FzU-00007l-8e for gcvg-git-2@gmane.org; Sun, 10 May 2009 22:51:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752653AbZEJUvJ (ORCPT ); Sun, 10 May 2009 16:51:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752611AbZEJUvH (ORCPT ); Sun, 10 May 2009 16:51:07 -0400 Received: from data.xzibition.com ([64.18.130.122]:63188 "EHLO data.xzibition.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbZEJUvG (ORCPT ); Sun, 10 May 2009 16:51:06 -0400 Received: from c-75-73-187-87.hsd1.mn.comcast.net ([75.73.187.87] helo=[192.168.10.8]) by data.xzibition.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1M3FzO-0007D3-RH; Sun, 10 May 2009 16:51:14 -0400 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <200905102225.25508.markus.heidelberg@web.de> X-Enigmail-Version: 0.95.7 OpenPGP: id=3A809694; url=www.shatow.net/bryan.asc X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - data.xzibition.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [26 6] / [26 6] X-AntiAbuse: Sender Address Domain - shatow.net Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: My git is outdated on my development server, 1.5.6.5: --mirror Instead of naming each ref to push, specifies that all refs under $GIT_DIR/refs/heads/ and $GIT_DIR/refs/tags/ be mirrored to the remote repository. Newly created local refs will be pushed to the remote end, locally updated refs will be force updated on the remote end, and deleted refs will be removed from the remote end. This is the default if the configuration option remote..mirror is set. So, it's a bug in the docs in 1.5.6.5. This behavior makes no sense to me. Can we at least add a config option to make it not push remotes? I push my development repository to a remote private repository only as a backup, and push my master/next to a public repository. I see no reason to push my 8 remotes and all their branches to my backup repository. Bryan Markus Heidelberg wrote: > Bryan Drewery, 10.05.2009: > >> git-push --mirror was incorrectly mirroring refs/remotes/ >> > > No, that's correct. > > >> previously. This patch fixes it to follow the documentation >> which is to mirror only refs/heads/ and refs/tags/. >> > > Where have you read this? In the git-push docs at the --mirror > description there is written "all refs under $GIT_DIR/refs/". > > Markus > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >