Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to be working on Windows #511

Closed
tobya opened this issue Sep 7, 2014 · 2 comments
Closed

Doesn't seem to be working on Windows #511

tobya opened this issue Sep 7, 2014 · 2 comments

Comments

@tobya
Copy link
Contributor

tobya commented Sep 7, 2014

I did some work a long time ago to get gitlist working in a simple fashion in windows. I just came back to gitlist and again am having difficulty getting it to run on windows.

Has anyone else managed to get the latest version working on windows? With Apache?

I would be interested in working with another php windows developer to get gitlist working reliably on windows. Is anyone interested?

@djmattyg007
Copy link

Can you provide any details about what's not working when you try and run it on windows?

@tobya
Copy link
Contributor Author

tobya commented Nov 29, 2014

I got this working now but there is a few odd things,not sure if they are planned

The placing of the repositories directory is odd.

My .git repository is at this location

D:\MYSERVER\RecipeDiff\recipes_txt\.git' 

If I put what I would expect to put in the repositiories array in the config file

D:\MYSERVER\RecipeDiff\recipes_txt\

I get the following error.

Fatal error: Uncaught exception 'RuntimeException' with message 'There are no GIT repositories in D:\MYSERVER\RecipeDiff\recipes_txt' in D:\MYSERVER\websites\tests\gitlist\src\GitList\Git\Client.php:42 Stack trace: #0 D:\MYSERVER\websites\tests\gitlist\src\GitList\Util\Routing.php(122): GitList\Git\Client->getRepositories(Array) #1 D:\MYSERVER\websites\tests\gitlist\src\GitList\Controller\MainController.php(48): GitList\Util\Routing->getRepositoryRegex() #2 D:\MYSERVER\websites\tests\gitlist\vendor\silex\silex\src\Silex\Application.php(492): GitList\Controller\MainController->connect(Object(GitList\Application)) #3 D:\MYSERVER\websites\tests\gitlist\boot.php(7): Silex\Application->mount('', Object(GitList\Controller\MainController)) #4 D:\MYSERVER\websites\tests\gitlist\index.php(28): require('D:\MYSERVER\we...') #5 {main} thrown in D:\MYSERVER\websites\tests\gitlist\src\GitList\Git\Client.php on line 42

If instead I step up one level to this

repositories[] = 'D:\MYSERVER\RecipeDiff\' ; Path to your repositories

If it is relevant, my url to the root is mydomain.ie/tests/gitlist/

Then it lists my git repositories and everything seems to work ok. However I would expect to be able to input my repository as the dir that the .git folder is hosted in. For the moment this could be fixed for windows users by updating the comments in the config file (push request to follow) but if someone understands what's going on and could fix it, it would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants