git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] Move remote parsing into a library file out of builtin-push.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 10, 2007, 08:04 UTC
Message-ID
<Pine.LNX.4.64.0705100355560.18541@iabervon.org>
In-Reply-To
<7vmz0dktdf.fsf@assigned-by-dhcp.cox.net>
On Thu, 10 May 2007, Junio C Hamano wrote:
Show 30 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> > On Thu, 10 May 2007, Junio C Hamano wrote:
> >
> >> This seems to break t9400, with "fatal: bad repository 'gitcvs.git",
> >> upon "git push".
> >> 
> >> : gitster t/db/remote; sh t9400-git-cvsserver-server.sh -i -v
> >> * expecting success: cvs -Q co -d cvswork master &&
> >>    test "$(echo $(grep -v ^D cvswork/CVS/Entries|cut -d/ -f2,3,5))" = "empty/1.1/"
> >> cvs checkout: Updating cvswork
> >> U cvswork/empty
> >> *   ok 1: basic checkout
> >> 
> >> * expecting success: echo testfile1 >testfile1 &&
> >>    git add testfile1 &&
> >>    git commit -q -m "Add testfile1" &&
> >>    git push gitcvs.git >/dev/null &&
> >
> > The man page doesn't think this is valid, since it only claims absolute 
> > paths to work for local repositories.
> 
> Does it?  I suspect we need to fix the manpage then, as it is
> fairly common to do 
> 
> 	$ git fetch ../next-door-neighbour
> 
> and expect the opposite to work as well.
> 
> And I think it does today.

Hmm, and I guess URIs on the command line work the same way. How about requiring a '/' somewhere in a repository argument in order to treat it as a repository instead of a remote name? Then "../next-door-neighbour" would work, "./gitcvs.git" would work (in the odd case where you actually have a bare repository sitting in your working directory), but we'd avoid the current default of pushing to a bare repository in "./origin/" if nothing at all is configured.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “Move remote parsing into a library file out of builtin-push.”
  1. 1/3 Move remote parsing into a library file out of builtin-push.Daniel Barkalow, May 10, 2007
  2. Junio C HamanoMay 10, 2007
  3. Daniel BarkalowMay 10, 2007
  4. Junio C HamanoMay 10, 2007
  5. Daniel BarkalowMay 10, 2007
  6. Junio C HamanoMay 10, 2007
  7. Daniel BarkalowMay 10, 2007
  8. Junio C HamanoMay 10, 2007
  9. Daniel BarkalowMay 10, 2007
  10. Junio C HamanoMay 10, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.