Update the git-ls-tree documentation
[git.git] / convert-objects.c
index 073cab5..d78a8b4 100644 (file)
@@ -1,7 +1,5 @@
 #define _XOPEN_SOURCE /* glibc2 needs this */
-#define __EXTENSIONS__ /* solaris needs this */
 #include <time.h>
-#include <ctype.h>
 #include "cache.h"
 
 struct entry {
@@ -318,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>");