[GH-ISSUE #578] Allow git clone <dufs url> when the the directory which <dufs url> is target to is a bare git repo #340

Closed
opened 2026-04-08 16:52:11 +03:00 by zhus · 2 comments
Owner

Originally created by @evan0greenup on GitHub (Apr 25, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/578

Specific Demand

When the directory the url is point to is a bare git repo, then add ability to git clone from this url.

Implement Suggestion

It would be nice to take reference and reuse primitives from https://github.com/w4/rgit .

When HTTP(S) request from git clone arrives dufs, dufs just check whether the target directory is a valid bare git repo, if not, return a error, otherwise, just reuse the mechanism on how the git cgi server behave.

Originally created by @evan0greenup on GitHub (Apr 25, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/578 ## Specific Demand <!-- What feature do you need, please describe it in detail. --> When the directory the url is point to is a bare git repo, then add ability to `git clone` from this url. ## Implement Suggestion <!-- If you have any suggestion for complete this feature, you can tell us. --> It would be nice to take reference and reuse primitives from <https://github.com/w4/rgit> . When HTTP(S) request from `git clone` arrives `dufs`, dufs just check whether the target directory is a valid bare git repo, if not, return a error, otherwise, just reuse the mechanism on how the git cgi server behave.
zhus closed this issue 2026-04-08 16:52:11 +03:00
Author
Owner

@evan0greenup commented on GitHub (Apr 25, 2025):

@sigoden , what is your opinion?

<!-- gh-comment-id:2829271221 --> @evan0greenup commented on GitHub (Apr 25, 2025): @sigoden , what is your opinion?
Author
Owner

@sigoden commented on GitHub (Apr 25, 2025):

We will not support this feature.

Git server is beyond the scope of the dufs project.

Maybe you can try git daemon

<!-- gh-comment-id:2829347059 --> @sigoden commented on GitHub (Apr 25, 2025): We will not support this feature. Git server is beyond the scope of the dufs project. Maybe you can try `git daemon`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#340