aboutsummaryrefslogtreecommitdiffstats
path: root/_examples
diff options
context:
space:
mode:
authorAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-03-07 12:58:18 +0100
committerAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-03-07 12:58:18 +0100
commit33e7c165c9fb5594821005b7ee55826e5a305487 (patch)
tree2f858902843f22379c80512c4b2f2dc1221723ad /_examples
parentf64e4b856865bc37f45e55ef094060481b53928e (diff)
downloadgo-git-33e7c165c9fb5594821005b7ee55826e5a305487.tar.gz
project: move imports from srcd.works to gopkg.in
To be able to fix #261 we will move again to gopkg.in before v4 stable release.
Diffstat (limited to '_examples')
-rw-r--r--_examples/clone/main.go4
-rw-r--r--_examples/common_test.go2
-rw-r--r--_examples/custom_http/main.go10
-rw-r--r--_examples/log/main.go6
-rw-r--r--_examples/open/main.go4
-rw-r--r--_examples/progress/main.go4
-rw-r--r--_examples/push/main.go4
-rw-r--r--_examples/remotes/main.go10
-rw-r--r--_examples/showcase/main.go6
9 files changed, 25 insertions, 25 deletions
diff --git a/_examples/clone/main.go b/_examples/clone/main.go
index 27d043b..3b24af2 100644
--- a/_examples/clone/main.go
+++ b/_examples/clone/main.go
@@ -4,8 +4,8 @@ import (
"fmt"
"os"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
)
// Basic example of how to clone a repository using clone options.
diff --git a/_examples/common_test.go b/_examples/common_test.go
index f65c1dc..cb101e2 100644
--- a/_examples/common_test.go
+++ b/_examples/common_test.go
@@ -66,7 +66,7 @@ func tempFolder() string {
func packageFolder() string {
return filepath.Join(
build.Default.GOPATH,
- "src", "srcd.works/go-git.v4",
+ "src", "gopkg.in/src-d/go-git.v4",
)
}
diff --git a/_examples/custom_http/main.go b/_examples/custom_http/main.go
index f584da2..0d45080 100644
--- a/_examples/custom_http/main.go
+++ b/_examples/custom_http/main.go
@@ -7,11 +7,11 @@ import (
"os"
"time"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
- "srcd.works/go-git.v4/plumbing/transport/client"
- githttp "srcd.works/go-git.v4/plumbing/transport/http"
- "srcd.works/go-git.v4/storage/memory"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4/plumbing/transport/client"
+ githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
)
// Here is an example to configure http client according to our own needs.
diff --git a/_examples/log/main.go b/_examples/log/main.go
index da856ac..c77e5a5 100644
--- a/_examples/log/main.go
+++ b/_examples/log/main.go
@@ -3,9 +3,9 @@ package main
import (
"fmt"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
- "srcd.works/go-git.v4/storage/memory"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
)
// Example of how to:
diff --git a/_examples/open/main.go b/_examples/open/main.go
index 9174588..a5364ed 100644
--- a/_examples/open/main.go
+++ b/_examples/open/main.go
@@ -4,8 +4,8 @@ import (
"fmt"
"os"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
)
// Open an existing repository in a specific folder.
diff --git a/_examples/progress/main.go b/_examples/progress/main.go
index 6d68f84..357703c 100644
--- a/_examples/progress/main.go
+++ b/_examples/progress/main.go
@@ -3,8 +3,8 @@ package main
import (
"os"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
)
// Example of how to show the progress when you do a basic clone operation.
diff --git a/_examples/push/main.go b/_examples/push/main.go
index 809c26b..89d7773 100644
--- a/_examples/push/main.go
+++ b/_examples/push/main.go
@@ -3,8 +3,8 @@ package main
import (
"os"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
)
// Example of how to open a repository in a specific path, and push to
diff --git a/_examples/remotes/main.go b/_examples/remotes/main.go
index 06ffdd1..31c5cc5 100644
--- a/_examples/remotes/main.go
+++ b/_examples/remotes/main.go
@@ -3,11 +3,11 @@ package main
import (
"fmt"
- "srcd.works/go-git.v4"
- . "srcd.works/go-git.v4/_examples"
- "srcd.works/go-git.v4/config"
- "srcd.works/go-git.v4/plumbing"
- "srcd.works/go-git.v4/storage/memory"
+ "gopkg.in/src-d/go-git.v4"
+ . "gopkg.in/src-d/go-git.v4/_examples"
+ "gopkg.in/src-d/go-git.v4/config"
+ "gopkg.in/src-d/go-git.v4/plumbing"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
)
// Example of how to:
diff --git a/_examples/showcase/main.go b/_examples/showcase/main.go
index 82c2acf..7bd9d09 100644
--- a/_examples/showcase/main.go
+++ b/_examples/showcase/main.go
@@ -5,10 +5,10 @@ import (
"os"
"strings"
- "srcd.works/go-git.v4"
- "srcd.works/go-git.v4/plumbing/object"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/plumbing/object"
- . "srcd.works/go-git.v4/_examples"
+ . "gopkg.in/src-d/go-git.v4/_examples"
)
// Example of an specific use case: