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

Re: cg-clone produces "___" file and no working tree

From
Junio C Hamano <junkio@cox.net>
Date
Apr 20, 2006, 20:23 UTC
Message-ID
<7vodywxago.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vslo8xaql.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 10 quoted lines
> Zack Brown <zbrown@tumblerings.org> writes:
>
>> Not true. I went into the git source directory, and ran "make". Nothing more.
>
> Ah, I misunderstood.  You are trying to run it _without_
> installing it.
>
> Well, then probably you do not have templates installed
> anywhere, especially not where git-init-db expects them to be
> found.
(sorry for the short message sent unfinished by mistake).

Running things without installing is somewhat tricky, but test framework needs to do that, so there are some things you would need to do.

 - "git init-db" takes --template argument; in the source area
   before installing, they are built in templates/blt/.
 - "git" and programs that need to invoke other git programs
   (e.g. git-send-pack) expects things to be found in gitexecdir
   you set when you build.  If you are not installing, you need
   to override that with GIT_EXEC_PATH environment variable.

There might be other things, but you should be able to find them from what t/Makefile and t/test-lib.sh do.

Having said that, honestly I would not recommend "runnning without installing" unless you know what you are doing ;-).

Previous: Petr BaudisNext: Zack Brown
Message 14 of 15 in “cg-clone produces "___" file and no working tree”
  1. Zack BrownApr 19, 2006
  2. Junio C HamanoApr 19, 2006
  3. Zack BrownApr 19, 2006
  4. Petr BaudisApr 19, 2006
  5. Zack BrownApr 19, 2006
  6. Petr BaudisApr 19, 2006
  7. Zack BrownApr 20, 2006
  8. Junio C HamanoApr 20, 2006
  9. Zack BrownApr 20, 2006
  10. Junio C HamanoApr 20, 2006
  11. Petr BaudisApr 20, 2006
  12. Junio C HamanoApr 20, 2006
  13. Petr BaudisApr 20, 2006
  14. Junio C HamanoApr 20, 2006
  15. Zack BrownApr 20, 2006

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.