expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

Message saying that Revisr could not detect a repository #61

Closed JosefJezek closed 9 years ago

JosefJezek commented 9 years ago

I don't see message saying that Revisr could not detect a repository. :-(

Operating System    Linux
Exec() Enabled  true
Git Install Path    /usr/bin/git
Git Version git version 1.9.1
MySQL Install Path  /usr/bin/mysql
Repository Status   No repository detected.
[26-Jun-2015 10:57:42 UTC] PHP Notice:  Undefined index: gitignore in /var/www/***/htdocs/wp-content/plugins/revisr/includes/class-revisr-settings-fields.php on line 142
mattgrshaw commented 9 years ago

Hi,

I'm guessing you did have a repository set up? Where was it located?

mattgrshaw commented 9 years ago

Also that undefined index is a known bug, fix is ready for next release. It shouldn't affect anything though other than showing that error when DEBUG mode is turned on.

JosefJezek commented 9 years ago

I dont setup git repo. I would like git init from your plugin. I have wp-config.php outside wp root.

mattgrshaw commented 9 years ago

Hi,

In that case, you should be able to add the following to your wp-config.php:

"define( 'REVISR_GIT_DIR', '/var/www/***/htdocs' );"

And it would create the repo in the htdocs folder. Alternatively you could set the path to '/var/www/***/htdocs/wp-content' to just track themes, plugins, and uploads.

mattgrshaw commented 9 years ago

Closing this since I haven't heard back, but if you run into any further issues please feel free to open a support ticket over on the WordPress plugin page.

Thanks!