diff options
| author | Stefan Majewsky <stefan.majewsky@sap.com> | 2023-04-17 15:05:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 15:05:10 +0200 |
| commit | 7c93bb18bf4e8fc8a56c1524fabea462ee8cf8f0 (patch) | |
| tree | ea285343822712bf002ad6dee0b11a094b442e2d /internal/rtree/get_test.go | |
| parent | be0e424eecec3fec19ba3518f8fd1bb07b6908dc (diff) | |
| parent | d0059fcb87312d296a31d6965d6db84e499fe020 (diff) | |
| download | gofu-7c93bb18bf4e8fc8a56c1524fabea462ee8cf8f0.tar.gz | |
Merge pull request #9 from SuperSandro2000/dont-compact
Don't compact URLs
Diffstat (limited to 'internal/rtree/get_test.go')
| -rw-r--r-- | internal/rtree/get_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rtree/get_test.go b/internal/rtree/get_test.go index a438234..789e903 100644 --- a/internal/rtree/get_test.go +++ b/internal/rtree/get_test.go @@ -35,7 +35,7 @@ var testIndexWithTwoRepos = Index{ { CheckoutPath: "github.com/git/git", Remotes: []Remote{ - {Name: "origin", URL: "gh:git/git"}, + {Name: "origin", URL: "https://github.com/git/git"}, }, }, }, @@ -65,14 +65,14 @@ func TestGetNewRepo(t *testing.T) { Args: []string{"get", remoteURL}, Index: testIndexWithTwoRepos, ExpectOutput: target + "\n", - ExpectExecution: Recorded("git clone gh:another/repo " + target), + ExpectExecution: Recorded("git clone https://github.com/another/repo " + target), ExpectIndex: &Index{ Repos: []*Repo{ { CheckoutPath: "github.com/another/repo", Remotes: []Remote{ //regardless of the remote URL used, we expect the contracted form to be used - {Name: "origin", URL: "gh:another/repo"}, + {Name: "origin", URL: "https://github.com/another/repo"}, }, }, testIndexWithTwoRepos.Repos[0], @@ -106,7 +106,7 @@ func TestGetNewForkAsRemote(t *testing.T) { { CheckoutPath: "github.com/git/git", Remotes: []Remote{ - {Name: "origin", URL: "gh:git/git"}, + {Name: "origin", URL: "https://github.com/git/git"}, {Name: "myfork", URL: "https://example.com/git"}, }, }, |
