* remove unused fn
This commit is contained in:
parent
f200a9a4a7
commit
8c556332a3
|
@ -2,7 +2,6 @@ package git
|
|||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
@ -73,22 +72,6 @@ func TestCloneWithCallback(t *testing.T) {
|
|||
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
|
||||
func TestCloneWithExternalHTTPUrl(t *testing.T) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue