Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-10 01:41:39 +0300
committerJunio C Hamano <junkio@cox.net>2006-02-10 01:41:39 +0300
commitce1610ead63221738225c415300f3d32620ced04 (patch)
tree88de99ec7d616a45bb2bc16cc86ed9a0fd78a2d4 /commit-tree.c
parent147cf31738e5e66aa304897ede6b556d4e204967 (diff)
call git_config() after setup_git_directory()
If you call setup_git_directory() to work from a subdirectory, that should be run first before running git_config(). Otherwise you would not read the configuration file from the correct place. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'commit-tree.c')
-rw-r--r--commit-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commit-tree.c b/commit-tree.c
index 4634b50e6a..b1c8dca48d 100644
--- a/commit-tree.c
+++ b/commit-tree.c
@@ -86,13 +86,13 @@ int main(int argc, char **argv)
unsigned int size;
setup_ident();
+ setup_git_directory();
+
git_config(git_default_config);
if (argc < 2 || get_sha1_hex(argv[1], tree_sha1) < 0)
usage(commit_tree_usage);
- setup_git_directory();
-
check_valid(tree_sha1, "tree");
for (i = 2; i < argc; i += 2) {
char *a, *b;