-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support serving bare repositories #634
Comments
Hey @andir! I might be wrong, but it looks to me like src-cli/internal/servegit/serve.go Lines 183 to 196 in 3a48ac7
@keegancsmith would know best, though. So, ping :) |
That only works if you have a directory named |
It is difficult to detect a bare git repository generally which is why we rely on the However, saying that we may have something which works enough of the time and is performant: check for a |
On my Git host I've all the repositories in "bare" format. They have been created using
git init --bare $name
and thus do not have a.git
folder within them. The repositories don't need a full checkout nor a.git
folder when being accessed via SSH. Currently serving those repositories doesn't work as the check for.git
folder within them fails.On the filesystem the layout looks like this:
Ideally each of the repositories would appear with their name with the
.git
suffix stripped (foo
,bar
,project1/zes
, ...).Is this something you'd like in the upstream code base? I wouldn't mind trying to tackle the issue as the original code seems to have enough test coverage for me to be confident in not breaking stuff on the way.
The text was updated successfully, but these errors were encountered: