aboutsummaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-29 21:32:01 +0700
committerShulhan <ms@kilabit.info>2019-01-29 21:35:08 +0700
commitda2558e377c42aeaaca5bf8f39396ca2845cc94b (patch)
treedc9879ad4ea5fc3dcc82d37c2cf4337df3360492 /lib/git
parentaaaaaaf72a416cf0b85beec8db9e364f9868370e (diff)
downloadpakakeh.go-da2558e377c42aeaaca5bf8f39396ca2845cc94b.tar.xz
lib/git: fix testdata and test input
Somehow, the bare repository in testdata/beku_test is not detected as repository by git version 2.20.1.495.gaa96b0ce6b.
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git/git_test.go4
-rw-r--r--lib/git/testdata/beku_test.git/config2
-rw-r--r--lib/git/testdata/beku_test.git/packed-refs1
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/git/git_test.go b/lib/git/git_test.go
index 78016ee0..b05c9ace 100644
--- a/lib/git/git_test.go
+++ b/lib/git/git_test.go
@@ -59,7 +59,7 @@ func TestCheckoutRevision(t *testing.T) {
desc: "With empty revision",
}, {
desc: "With unknown revision",
- branch: "beku",
+ branch: "master",
revision: "xxxyyyzzz",
expErr: "CheckoutRevision: exit status 128",
expStderr: `fatal: ambiguous argument 'xxxyyyzzz': unknown revision or path not in the working tree.
@@ -68,7 +68,7 @@ Use '--' to separate paths from revisions, like this:
`,
}, {
desc: "With valid revision",
- branch: "beku",
+ branch: "master",
revision: "d6ad9da",
}}
diff --git a/lib/git/testdata/beku_test.git/config b/lib/git/testdata/beku_test.git/config
index a7302780..d93763de 100644
--- a/lib/git/testdata/beku_test.git/config
+++ b/lib/git/testdata/beku_test.git/config
@@ -3,4 +3,4 @@
filemode = true
bare = true
[remote "origin"]
- url = /home/ms/src/github.com/shuLhan/share/lib/git/testdata/beku_test
+ url = https://github.com/shuLhan/beku_test
diff --git a/lib/git/testdata/beku_test.git/packed-refs b/lib/git/testdata/beku_test.git/packed-refs
index c014ad2d..936a19ff 100644
--- a/lib/git/testdata/beku_test.git/packed-refs
+++ b/lib/git/testdata/beku_test.git/packed-refs
@@ -1,5 +1,4 @@
# pack-refs with: peeled fully-peeled sorted
-d6ad9dabc61f72558013bb05e91bf273c491e39c refs/heads/beku
c9f69fb7fea72fbc0e7b70a82a1a48a6e89c4ee0 refs/heads/master
ec65455bf4ca8c37a65ce88b9385e4191fb21975 refs/tags/v0.1.0
582b912d9958422308dd6aaca85bc15a0463086e refs/tags/v0.2.0