Redo the templates generation and installation.
Per discussion with people interested in binary packaging, change the default template location from /etc/git-core to /usr/share/git-core hierarchy. If a user wants to run git before installing for whatever reason, in addition to adding $src to the PATH environment variable, git-init-db can be run with --template=$src/templates/blt/ parameter. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
4
cache.h
4
cache.h
@ -128,10 +128,6 @@ extern unsigned int active_nr, active_alloc, active_cache_changed;
|
||||
#define DB_ENVIRONMENT "GIT_OBJECT_DIRECTORY"
|
||||
#define INDEX_ENVIRONMENT "GIT_INDEX_FILE"
|
||||
#define GRAFT_ENVIRONMENT "GIT_GRAFT_FILE"
|
||||
#define TEMPLATE_DIR_ENVIRONMENT "GIT_TEMPLATE_DIRECTORY"
|
||||
#ifndef DEFAULT_GIT_TEMPLATE_ENVIRONMENT
|
||||
#define DEFAULT_GIT_TEMPLATE_ENVIRONMENT "/etc/git-core/templates"
|
||||
#endif
|
||||
|
||||
extern char *get_object_directory(void);
|
||||
extern char *get_refs_directory(void);
|
||||
|
||||
Reference in New Issue
Block a user