File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -15,31 +15,6 @@ void initialize_the_repository(void)
15
15
repo_set_hash_algo (& the_repo , GIT_HASH_SHA1 );
16
16
}
17
17
18
- static char * git_path_from_env (const char * envvar , const char * git_dir ,
19
- const char * path , int fromenv )
20
- {
21
- if (fromenv ) {
22
- const char * value = getenv (envvar );
23
- if (value )
24
- return xstrdup (value );
25
- }
26
-
27
- return xstrfmt ("%s/%s" , git_dir , path );
28
- }
29
-
30
- static int find_common_dir (struct strbuf * sb , const char * gitdir , int fromenv )
31
- {
32
- if (fromenv ) {
33
- const char * value = getenv (GIT_COMMON_DIR_ENVIRONMENT );
34
- if (value ) {
35
- strbuf_addstr (sb , value );
36
- return 1 ;
37
- }
38
- }
39
-
40
- return get_common_dir_noenv (sb , gitdir );
41
- }
42
-
43
18
static void expand_base_dir (char * * out , const char * in ,
44
19
const char * base_dir , const char * def_in )
45
20
{
You can’t perform that action at this time.
0 commit comments