]> asedeno.scripts.mit.edu Git - git.git/blobdiff - setup.c
gitignore(5): Allow "foo/" in ignore list to match directory "foo"
[git.git] / setup.c
diff --git a/setup.c b/setup.c
index e96a316452197ed4b224f0c6839f036a01082bc2..adede16a4deea1423f52c3b736de735d27f7172a 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -140,7 +140,7 @@ const char **get_pathspec(const char *prefix, const char **pathspec)
  * Test if it looks like we're at a git directory.
  * We want to see:
  *
- *  - either a objects/ directory _or_ the proper
+ *  - either an objects/ directory _or_ the proper
  *    GIT_OBJECT_DIRECTORY environment variable
  *  - a refs/ directory
  *  - either a HEAD symlink or a HEAD file that is formatted as
@@ -388,7 +388,6 @@ int check_repository_format(void)
 const char *setup_git_directory(void)
 {
        const char *retval = setup_git_directory_gently(NULL);
-       check_repository_format();
 
        /* If the work tree is not the default one, recompute prefix */
        if (inside_work_tree < 0) {