diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-03-15 01:49:32 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-03-15 01:49:32 +0100 |
| commit | c4fce1a218fd33938c0be90e939531c0a00ebf7f (patch) | |
| tree | 40cf7f6c0331050db5f841ddfd6738951f482f66 /remote_test.go | |
| parent | 050e6fbc49ac1a173af5e3462b3c2d330cadd113 (diff) | |
Update to libgit2 d675982a153
There's been some changes to the checkout strategy, especially the
SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that
shouldn't be necessary to use in the general case.
The largest changes come from the removal of the signture from
ref-modifying functions/methods and the removal of the reflog string in
all but those directly related to moving references.
Diffstat (limited to 'remote_test.go')
| -rw-r--r-- | remote_test.go | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/remote_test.go b/remote_test.go index 54a66ed..bbbdeb9 100644 --- a/remote_test.go +++ b/remote_test.go @@ -4,7 +4,6 @@ import ( "fmt" "os" "testing" - "time" ) func TestRefspecs(t *testing.T) { @@ -73,7 +72,7 @@ func TestCertificateCheck(t *testing.T) { err = remote.SetCallbacks(&callbacks) checkFatal(t, err) - err = remote.Fetch([]string{}, nil, "") + err = remote.Fetch([]string{}, "") checkFatal(t, err) } @@ -168,13 +167,7 @@ func TestRemotePrune(t *testing.T) { checkFatal(t, err) defer commit.Free() - sig := &Signature{ - Name: "Rand Om Hacker", - Email: "[email protected]", - When: time.Now(), - } - - remoteRef, err := remoteRepo.CreateBranch("test-prune", commit, true, sig, "branch test-prune") + remoteRef, err := remoteRepo.CreateBranch("test-prune", commit, true) checkFatal(t, err) repo := createTestRepo(t) @@ -189,10 +182,10 @@ func TestRemotePrune(t *testing.T) { remote, err := repo.CreateRemote("origin", remoteUrl) checkFatal(t, err) - err = remote.Fetch([]string{"test-prune"}, sig, "") + err = remote.Fetch([]string{"test-prune"}, "") checkFatal(t, err) - _, err = repo.CreateReference("refs/remotes/origin/test-prune", head, true, sig, "remote reference") + _, err = repo.CreateReference("refs/remotes/origin/test-prune", head, true, "remote reference") checkFatal(t, err) err = remoteRef.Delete() |
