jakubgarfield / Bonobo-Git-Server

Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
http://bonobogitserver.com
MIT License
1.81k stars 605 forks source link

Bonobo doesn't recognise a new repository directory #858

Closed YSivak closed 4 years ago

YSivak commented 4 years ago

Bonobo doesn't show new (edit: repository) folder in repository directory on repositories page, rescan directories does nothing. Tried restarting IIS and checking configuration but nothing helped. It worked before and permissions are the same as other folders.

willdean commented 4 years ago

Is there actually a bar repository in the folder?

There needs to be a repo there, not just a folder.

YSivak commented 4 years ago

Yes, of course. forgot to mention it's a repository.

willdean commented 4 years ago

You'll probably have to investigate this a bit more locally - perhaps using something like procmon to watch Bonobo actually walk the directories?

Basically, Bonono looks up the names of all the directories within the repository directory, and then checks if each one corresponds to the name of a repo in the database already. If it doesn't, this Bonobo calls LibGit2Sharp.Repository.IsValid to ask it if there's a repository in the folder.

Other than permissions issues, I'm not sure why LibGit2Sharp would fail to recognise a folder as containing a repo, but procmon might give a clue.

Simply running git init --bare MyTest in the Bonobo repo base directory might also give some information about whether it's something specific about your repo or something more general.

willdean commented 4 years ago

Closing because of no response - if you get any further and it's a Bonobo problem, please reopen