• reverendj1

    (@reverendj1)


    I seem to be getting the “No Git repository was detected” message on the dashboard. I’m using a LAMP setup. Git is correctly set up. I can push from the terminal, logged in as the apache user just fine. Revisr even did a daily backup just fine, except it skipped the DB. So, git should be working.

    Unless I disable Revisr, I get a lot of blank pages in the WP admin pages. Looking at the apache log, I see a lot of these errors:
    fatal: Not a git repository (or any of the parent directories): .git

    I tried manually running git rev-parse --show-toplevel in the WordPress root as the apache user, and it returned the right path, so I’m really confused as to what might be going on. Any ideas?

    https://www.ads-software.com/plugins/revisr/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Expanded Fronts

    (@expandedfronts)

    Hello,

    Can you please provide some further details on your environment? What version of linux, PHP, etc? Are you trying to use Revisr with an existing repository? If so, where is the .git folder in relation to the wordpress install?

    I just checked on a couple LAMP servers and wasn’t able to replicate the issue.

    It seems like it could be permissions or possibly a path issue. I’ve seen instances where the path to git was set correctly on the system, but Apache was using a different path due to a program like MAMP/XAMP changing the path.

    Plugin Author Expanded Fronts

    (@expandedfronts)

    We can likely rule out permissions though since you can run the command with the Apache user. I’d check the path in Apache first. If you’re not sure how to do that, you can create a file with the following:

    <?php echo exec('which git'); ?>

    If the database backup isn’t working either, you’ll likely just need to set the path to MySQL in the database settings section.

    Let me know if you have any questions, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Another "No Git repository was detected"’ is closed to new replies.