From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: What's cooking in git.git (Mar 2009, #06; Sat, 21) Date: Tue, 24 Mar 2009 02:02:34 -0700 Message-ID: <7vljqv2t05.fsf@gitster.siamese.dyndns.org> References: <7vk56jfgt2.fsf@gitster.siamese.dyndns.org> <20090323144650.GA20058@pvv.org> <7v4oxk6wk2.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Finn Arne Gangstad X-From: git-owner@vger.kernel.org Tue Mar 24 10:04:18 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 1Lm2YR-0006hL-OC for gcvg-git-2@gmane.org; Tue, 24 Mar 2009 10:04:16 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754919AbZCXJCo (ORCPT ); Tue, 24 Mar 2009 05:02:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753743AbZCXJCn (ORCPT ); Tue, 24 Mar 2009 05:02:43 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:44466 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbZCXJCn (ORCPT ); Tue, 24 Mar 2009 05:02:43 -0400 Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 374E2A4FE5; Tue, 24 Mar 2009 05:02:40 -0400 (EDT) Received: from pobox.com (unknown [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id AA2C8A4FE4; Tue, 24 Mar 2009 05:02:36 -0400 (EDT) In-Reply-To: <7v4oxk6wk2.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Mon, 23 Mar 2009 09:19:57 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: 8720B38C-1852-11DE-BA86-32B0EBB1AA3C-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > Finn Arne Gangstad writes: > >> If you feel that talking about a possible future change is premature, >> you could omit that part of the second commit I guess, but I think >> printing some kind of warning is valuable. Are you waiting for more >> input? It seems that this topic is pretty dead now. Now it turns out that it has been "pretty dead" because nobody, not even the original author, was doing any testing and fixing. After merging this "warning" thing to next, I mistype the name of the remote I wanted to push with the default "matching" semantics and got this: $ git push --dry-run sf.net warning: You did not specify any refspecs to push, and the current remote warning: has not configured any push refspecs. The default action in this warning: case is to push all matching refspecs, that is, all branches warning: that exist both locally and remotely will be updated. This may warning: not necessarily be what you want to happen. warning: warning: You can specify what action you want to take in this case, and warning: avoid seeing this message again, by configuring 'push.default' to: warning: 'nothing' : Do not push anythig warning: 'matching' : Push all matching branches (default) warning: 'tracking' : Push the current branch to whatever it is tracking warning: 'current' : Push the current branch fatal: 'sf.net' does not appear to be a git repository fatal: The remote end hung up unexpectedly The final, most important error messages are dwarfed out by the warning that talks about setting configuration on the remote that does not even exist. In this particular case, it does not corrupt the local nor remote repositories, and because it was me who tried this who knew what he was doing, so it is Ok, and that is the point of keeping any new features out of 'master' until such silly misfeatures are found and fixed. But it would have been nicer if I weren't the only one testing and finding bugs.