From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: push not resolving commit-ish? Date: Fri, 24 May 2013 00:05:50 +0300 Message-ID: <20130523210550.GA31421@redhat.com> References: <20130523105310.GA17361@redhat.com> <7v4ndtftyf.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Felipe Contreras , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu May 23 23:05:36 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ufchc-0003QZ-8t for gcvg-git-2@plane.gmane.org; Thu, 23 May 2013 23:05:36 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758844Ab3EWVFc (ORCPT ); Thu, 23 May 2013 17:05:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758494Ab3EWVFb (ORCPT ); Thu, 23 May 2013 17:05:31 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4NL5SoG027451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 May 2013 17:05:28 -0400 Received: from redhat.com (vpn-202-161.tlv.redhat.com [10.35.202.161]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id r4NL5Q8i007501; Thu, 23 May 2013 17:05:27 -0400 Content-Disposition: inline In-Reply-To: <7v4ndtftyf.fsf@alter.siamese.dyndns.org> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, May 23, 2013 at 11:10:32AM -0700, Junio C Hamano wrote: > Felipe Contreras writes: > > > On Thu, May 23, 2013 at 5:53 AM, Michael S. Tsirkin wrote: > >> Looks like push can't resolve tags to commits. > >> Why is that? > >> > >> linux$ git push -f $PWD v3.10-rc2:refs/heads/vhost-next > > > > Perhaps v3.10-rc2^{}. Yeah, totally and completely not-user-friendly, > > More commonly "v3.10-rc2^0:vhost-next", if you are truly pushing it > out to a remote repository, but then it invites a puzzlement "What > do you plan to do next after pushing? The only reason v3.10-rc2 is > used is because there is not yet a local branch that will host the > vhost-next changes that is built on top of that tag (otherwise you > would be pushing that branch to vhost-next)". > > But in this particular case, you are force-pushing into the current > repository, and it is spelled much more commonly > > git branch -f vhost-next v3.10-rc2 > > I would think. That was just a bad example though, I really use it for push to remove.