aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-12-10 06:58:09 +0100
committerGitHub <noreply@github.com>2021-12-10 06:58:09 +0100
commite60e348f614a7272e4a51bdee8ba20f059ca4cce (patch)
tree15e8b08e313251925d95cb327bcf98e8f245f2ee /worktree_test.go
parent32c4f532abd57797322e97d95dfa02821980e309 (diff)
parent557a1fdcaabd51899b9213175762ed9603409985 (diff)
downloadgo-git-e60e348f614a7272e4a51bdee8ba20f059ca4cce.tar.gz
Merge pull request #418 from abhinav/unused
Remove unused vars/types/funcs/fields
Diffstat (limited to 'worktree_test.go')
-rw-r--r--worktree_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/worktree_test.go b/worktree_test.go
index a8f3187..4a14126 100644
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -184,7 +184,7 @@ func (s *WorktreeSuite) TestPullInSingleBranch(c *C) {
c.Assert(err, IsNil)
c.Assert(branch.Hash().String(), Equals, "6ecf0ef2c2dffb796033e5a02219af86ec6584e5")
- branch, err = r.Reference("refs/remotes/foo/branch", false)
+ _, err = r.Reference("refs/remotes/foo/branch", false)
c.Assert(err, NotNil)
storage := r.Storer.(*memory.Storage)
@@ -587,6 +587,7 @@ func (s *WorktreeSuite) TestCheckoutRelativePathSubmoduleInitialized(c *C) {
// test submodule path
modules, err := w.readGitmodulesFile()
+ c.Assert(err, IsNil)
c.Assert(modules.Submodules["basic"].URL, Equals, "../basic.git")
c.Assert(modules.Submodules["itself"].URL, Equals, "../submodule.git")