Skip to content

Commit ef078cb

Browse files
author
Simon Prochazka
committed
chore(deps): upgrade go-git to new organisation
go-git is no longer under src-d, but has a new home.
1 parent 97d66c2 commit ef078cb

18 files changed

+63
-57
lines changed

branch_diff_commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package git
33
import (
44
"fmt"
55

6-
"gopkg.in/src-d/go-git.v4/plumbing"
6+
"github.com/go-git/go-git/v5/plumbing"
77
)
88

99
// BranchDiffCommits compares commits from 2 branches and returns of a diff of them.

branch_diff_commits_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package git
33
import (
44
"testing"
55

6+
"github.com/go-git/go-git/v5"
67
"github.com/stretchr/testify/assert"
7-
"gopkg.in/src-d/go-git.v4"
88
)
99

1010
func TestBranchDiffCommits(t *testing.T) {

commit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package git
22

33
import (
4-
"gopkg.in/src-d/go-git.v4/plumbing"
5-
"gopkg.in/src-d/go-git.v4/plumbing/object"
4+
"github.com/go-git/go-git/v5/plumbing"
5+
"github.com/go-git/go-git/v5/plumbing/object"
66
)
77

88
// Commit find a commit based on commit hash and returns the Commit object

commit_date.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package git
33
import (
44
"time"
55

6-
"gopkg.in/src-d/go-git.v4/plumbing"
6+
"github.com/go-git/go-git/v5/plumbing"
77
)
88

99
// commitDate gets the commit at hash and returns the time of the commit

commits_between.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package git
33
import (
44
"errors"
55

6-
"gopkg.in/src-d/go-git.v4"
7-
"gopkg.in/src-d/go-git.v4/plumbing"
8-
"gopkg.in/src-d/go-git.v4/plumbing/object"
6+
"github.com/go-git/go-git/v5"
7+
"github.com/go-git/go-git/v5/plumbing"
8+
"github.com/go-git/go-git/v5/plumbing/object"
99
)
1010

1111
var (

commits_between_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"log"
66
"testing"
77

8+
"github.com/go-git/go-git/v5"
9+
"github.com/go-git/go-git/v5/plumbing"
810
"github.com/stretchr/testify/assert"
9-
"gopkg.in/src-d/go-git.v4"
10-
"gopkg.in/src-d/go-git.v4/plumbing"
1111
)
1212

1313
func TestCommitsBetween(t *testing.T) {

commits_on_branch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package git
33
import (
44
"errors"
55

6-
"gopkg.in/src-d/go-git.v4"
7-
"gopkg.in/src-d/go-git.v4/plumbing"
8-
"gopkg.in/src-d/go-git.v4/plumbing/object"
6+
"github.com/go-git/go-git/v5"
7+
"github.com/go-git/go-git/v5/plumbing"
8+
"github.com/go-git/go-git/v5/plumbing/object"
99
)
1010

1111
// ErrCommonCommitFound is used for identifying when the iterator has reached the common commit

commits_on_branch_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"testing"
66
"time"
77

8+
"github.com/go-git/go-billy/v5/memfs"
9+
"github.com/go-git/go-git/v5"
10+
"github.com/go-git/go-git/v5/plumbing"
11+
"github.com/go-git/go-git/v5/plumbing/object"
12+
"github.com/go-git/go-git/v5/storage/memory"
813
"github.com/stretchr/testify/assert"
9-
"gopkg.in/src-d/go-billy.v4/memfs"
10-
"gopkg.in/src-d/go-git.v4"
11-
"gopkg.in/src-d/go-git.v4/plumbing"
12-
"gopkg.in/src-d/go-git.v4/plumbing/object"
13-
"gopkg.in/src-d/go-git.v4/storage/memory"
1414
)
1515

1616
func createBranch(repo *git.Repository) {

current_branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package git
22

33
import (
4-
"gopkg.in/src-d/go-git.v4/plumbing"
4+
"github.com/go-git/go-git/v5/plumbing"
55
)
66

77
// CurrentBranch returns the reference HEAD is at right now

current_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package git
22

33
import (
4-
"gopkg.in/src-d/go-git.v4/plumbing/object"
4+
"github.com/go-git/go-git/v5/plumbing/object"
55
)
66

77
// CurrentCommit returns the commit that HEAD is at

0 commit comments

Comments
 (0)