Issue
I'm trying to make a git server using python (flask). I have private SSH access to the device for myself, but I want to make HTTP access for my friends without giving them access to the entire folder. It is not an option to restrict SSH access or create different users. Is it possible to return a git repository with flask so that it can be cloned via git clone google.com/my/url/myProject.git
.
I use bare-repositories (myProject.git) like a normal git-server.
For Example:
@app.route("/")
def index():
return gitRepository("./repos/myProject.git")
Thanks for every answer
Solution
Someone's created a simple implementation of a Git server in Flask.
Answered By - user19010953
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.