pager: remove obsolete comment
[gitweb.git] / builtin / diff.c
index 7b2a7448ed877c025f24b22c749d24dd046cc6be..7be7806146b7e10be035ef6d3654bbd1c1c424a7 100644 (file)
@@ -301,9 +301,9 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
                        break;
        }
 
-       if (!no_index) {
-               prefix = setup_git_directory_gently(&nongit);
+       prefix = setup_git_directory_gently(&nongit);
 
+       if (!no_index) {
                /*
                 * Treat git diff with at least one path outside of the
                 * repo the same as if the command would have been executed