Use new semantics of is_bare/inside_git_dir/inside_work_tree
[gitweb.git] / setup.c
diff --git a/setup.c b/setup.c
index 7e32de229dbbbabb812479cb42862bc111578b32..14a4d955b5bec90251f2c464d4086b08945b8b59 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -95,7 +95,7 @@ void verify_non_filename(const char *prefix, const char *arg)
        const char *name;
        struct stat st;
 
-       if (is_inside_git_dir())
+       if (!is_inside_work_tree() || is_inside_git_dir())
                return;
        if (*arg == '-')
                return; /* flag */