From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Worth Subject: Re: Problems setting up bare repository (git 1.5.3.3) Date: Mon, 01 Oct 2007 16:06:09 -0700 Message-ID: <87bqbisae6.wl%cworth@cworth.org> References: <7vejgeqxd1.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Oct__1_16:06:08_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: Barry Fishman , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Tue Oct 02 01:06:34 2007 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 1IcULD-0003Km-BT for gcvg-git-2@gmane.org; Tue, 02 Oct 2007 01:06:19 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750793AbXJAXGM (ORCPT ); Mon, 1 Oct 2007 19:06:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750768AbXJAXGM (ORCPT ); Mon, 1 Oct 2007 19:06:12 -0400 Received: from olra.theworths.org ([82.165.184.25]:54090 "EHLO olra.theworths.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbXJAXGL (ORCPT ); Mon, 1 Oct 2007 19:06:11 -0400 Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CBF54431FB1; Mon, 1 Oct 2007 16:06:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m4pyxWA85LAY; Mon, 1 Oct 2007 16:06:10 -0700 (PDT) Received: from raht.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 92118431FB0; Mon, 1 Oct 2007 16:06:09 -0700 (PDT) In-Reply-To: <7vejgeqxd1.fsf@gitster.siamese.dyndns.org> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --pgp-sign-Multipart_Mon_Oct__1_16:06:08_2007-1 Content-Type: text/plain; charset=US-ASCII On Mon, 01 Oct 2007 15:32:58 -0700, Junio C Hamano wrote: > "master:master") does not exist there, and we do not create it > unless you give a full refname that begins with refs/ (so that > push can tell if you want to create a tag or a branch). And why is that? Why isn't pushing a branch interpreted as wanting to create a branch and pushing a tag interpreted as wanting to create a tag unless git is told differently? > $ git push /pub/git/foo.git master:refs/heads/master I mean, it's nice that the advanced user can get all specific and invoke the low-level refs/heads/ thing here. But what I'd really like to have instead is just: $ git push /pub/git/foo.git master Is there any reason that that shouldn't be interpreted as "master:master" and that that would in turn be interpreted as "create a remote refs/heads/master" ? That would really be much kinder for new users. -Carl PS. As someone who has written some new-user documentation for git, there are a few low-level git notions that I would like to avoid in that documentation. For example, one is FETCH_HEAD. In my first attempt at porting hgbook-chapter2 to git I found myself using FETCH_HEAD to simulate "hg incoming". Thankfully, I was able to rewrite it by taking advantage of remotes and using "master..origin" instead. Another example is "refs/heads". I avoided this partially by inly documenting how to push all branches with "--all", but I'd much rather be able to say that the user could git push URL branch another-branch..." or "git push URL --all" for convenience. Finally, git-push itself spews quite a bit of output with "refs/heads" in it that I don't think is useful at all. For talking with the user, git should say "branch master" not "refs/heads/master". --pgp-sign-Multipart_Mon_Oct__1_16:06:08_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHAX1h6JDdNq8qSWgRAis7AJ0Q26CetYJ98AMHT6IudAok8pEjEQCdEn8D +6jSZQieOFeA/oBrMm8mX08= =/VVR -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Oct__1_16:06:08_2007-1--