bugfix: HTTPS Clone fails with remote pointer not found using Go transport (#836) #842

Merged
codexetreme merged 10 commits from bugfix/error_while_cloning into main 2021-10-23 12:33:11 -05:00
1 changed files with 0 additions and 17 deletions
Showing only changes of commit 8c556332a3 - Show all commits

View File

@ -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) {