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>
This commit is contained in:
Junio C Hamano
2005-11-26 00:50:02 -08:00
parent 5a3277133d
commit 53228a5fb8
14 changed files with 29 additions and 1 deletions

View File

@ -316,6 +316,8 @@ int main(int argc, char **argv)
unsigned char sha1[20];
struct entry *entry;
setup_git_directory();
if (argc != 2 || get_sha1(argv[1], sha1))
usage("git-convert-objects <sha1>");