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

Problem with template location

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Nov 9, 2005, 20:45 UTC
Message-ID
<200511092045.55300.alan@chandlerfamily.org.uk>

I am trying to set up a public repository on my server to which I can push stuff

I have just downloaded the git-core-0.99f-tar.bz2 file and untarred it as me (alan) on account on the server. My home directory is at /home/alan

Went in as me into the git-core-0.99f directory and did a make
Then became ROOT and did 
make prefix=/usr/local install
(I also built the documentation but I don't think that is relevent)

Separately AS ROOT I have gone into the directory where I am going to build my repositories (/var/lib/git) and tried to build the repository as per the tutorial.

roo:/var/lib/git# mkdir famtree.git roo:/var/lib/git# GIT_DIR=famtree.git git-init-db warning: templates not found /home/alan/share/git-core/templates/ roo:/var/lib/git#

git-init-db seems to have got the wrong place for the templates - ie the account where I originally built the code.

(NOTE: the templates have actually been installed in /usr/local/share/git-core/templates)

I had to do a make clean, but following that I did
make prefix=/usr/local 

for the first part, and then re-installed (also with the prefix) and it solves the problem

I don't know whether this is something that can be fixed at install time, or whether the README should be changed to make it clear that you need the prefix on the first stage of the process as well as the second.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
Next: Jon Loeliger
Message 1 of 4 in “Problem with template location”
  1. Alan ChandlerNov 9, 2005
  2. Jon LoeligerNov 9, 2005
  3. Junio C HamanoNov 9, 2005
  4. Peter EriksenNov 9, 2005

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.