mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #578] Allow git clone <dufs url> when the the directory which <dufs url> is target to is a bare git repo
#340
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 clonefrom 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 clonearrivesdufs, 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.@evan0greenup commented on GitHub (Apr 25, 2025):
@sigoden , what is your opinion?
@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