aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_commit_test.go
diff options
context:
space:
mode:
authoronee-only <kimww0306@gmail.com>2024-04-11 23:40:21 +0900
committeronee-only <kimww0306@gmail.com>2024-04-11 23:40:21 +0900
commit63a48ce846d316f8689e367e884069944c0e4831 (patch)
tree0d94fd84dbe7ed401b19faac39d19b813ed49dec /worktree_commit_test.go
parentcd6633c3c665ba37f766e96c59c57c58051d0e58 (diff)
downloadgo-git-63a48ce846d316f8689e367e884069944c0e4831.tar.gz
git: Refine some codes in test and non-test.
Diffstat (limited to 'worktree_commit_test.go')
-rw-r--r--worktree_commit_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree_commit_test.go b/worktree_commit_test.go
index fee8b15..ae8f841 100644
--- a/worktree_commit_test.go
+++ b/worktree_commit_test.go
@@ -233,7 +233,9 @@ func (s *WorktreeSuite) TestAddAndCommitWithSkipStatusPathNotModified(c *C) {
})
c.Assert(hash, Equals, expected)
c.Assert(err, IsNil)
+
commit1, err := w.r.CommitObject(hash)
+ c.Assert(err, IsNil)
status, err = w.Status()
c.Assert(err, IsNil)
@@ -260,7 +262,9 @@ func (s *WorktreeSuite) TestAddAndCommitWithSkipStatusPathNotModified(c *C) {
})
c.Assert(hash, Equals, expected2)
c.Assert(err, IsNil)
+
commit2, err := w.r.CommitObject(hash)
+ c.Assert(err, IsNil)
status, err = w.Status()
c.Assert(err, IsNil)