aboutsummaryrefslogblamecommitdiff
path: root/http_handle_repo_info.go
blob: 5dd92e97a93906c06ae6da3ed0548e754b51f51a (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                         
                                                                                                                                                                                                                                                                                                                                                
 
package main

import (
	"net/http"
	"net/url"
)

func handle_repo_info(w http.ResponseWriter, r *http.Request, params map[string]string) {
	http.Error(w, "\x1b[1;93mHi! We do not support Git operations over HTTP yet.\x1b[0m\n\x1b[1;93mMeanwhile, please use ssh by simply replacing the scheme with \"ssh://\":\x1b[0m\n\x1b[1;93mssh://"+r.Host+"/"+url.PathEscape(params["group_name"])+"/:/repos/"+url.PathEscape(params["repo_name"])+"\x1b[0m", http.StatusNotImplemented)
}