| 1074 | } |
| 1075 | |
| 1076 | static void update_relative_gitdir(const char *name UNUSED, |
| 1077 | const char *old_cwd, |
| 1078 | const char *new_cwd, |
| 1079 | void *data) |
| 1080 | { |
| 1081 | struct repository *repo = data; |
| 1082 | char *path = reparent_relative_path(old_cwd, new_cwd, |
| 1083 | repo_get_git_dir(repo)); |
| 1084 | trace_printf_key(&trace_setup_key, |
| 1085 | "setup: move $GIT_DIR to '%s'", |
| 1086 | path); |
| 1087 | set_git_dir_1(repo, path); |
| 1088 | free(path); |
| 1089 | } |
| 1090 | |
| 1091 | static void set_git_dir(struct repository *repo, const char *path, int make_realpath) |
| 1092 | { |
nothing calls this directly
no test coverage detected