* remove unused fn

This commit is contained in:
Yashodhan Ghadge 2021-10-23 01:36:33 +05:30
parent f200a9a4a7
commit 8c556332a3
1 changed files with 0 additions and 17 deletions

View File

@ -2,7 +2,6 @@ package git
import ( import (
"io/ioutil" "io/ioutil"
"net/http/httptest"
"os" "os"
"testing" "testing"
) )
@ -73,22 +72,6 @@ func TestCloneWithCallback(t *testing.T) {
defer remote.Free() defer remote.Free()
} }
// StartHTTP starts a new HTTP git server with the current configuration.
func StartHTTP(repoDir string) (*httptest.Server, error) {
service := gitkit.New(gitkit.Config{
Dir: repoDir,
Auth: false,
Hooks: &gitkit.HookScripts{},
AutoCreate: false,
})
if err := service.Setup(); err != nil {
return nil, err
}
server := httptest.NewServer(service)
return server, nil
}
// TestCloneWithExternalHTTPUrl // TestCloneWithExternalHTTPUrl
func TestCloneWithExternalHTTPUrl(t *testing.T) { func TestCloneWithExternalHTTPUrl(t *testing.T) {