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>2005-11-26 11:50:02 +0300
committerJunio C Hamano <junkio@cox.net>2005-11-29 10:13:02 +0300
commit53228a5fb8e80f87803e4a3ba8ed25b70fb4871d (patch)
tree0097d17996b5c71f3fb386eef354c84ffa3caaf2 /commit-tree.c
parent5a3277133d200151fe526e56e036c933d343958a (diff)
Make the rest of commands work from a subdirectory.
These commands are converted to run from a subdirectory. commit-tree convert-objects merge-base merge-index mktag pack-objects pack-redundant prune-packed read-tree tar-tree unpack-file unpack-objects update-server-info write-tree Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'commit-tree.c')
-rw-r--r--commit-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit-tree.c b/commit-tree.c
index b60299fed0..4634b50e6a 100644
--- a/commit-tree.c
+++ b/commit-tree.c
@@ -91,6 +91,8 @@ int main(int argc, char **argv)
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;