aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/repository_test.go b/repository_test.go
index da02a4d..eafbdf7 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -260,4 +260,8 @@ func (s *SuiteRepository) TestHeadFromRemoteError(c *C) {
remote := "not found"
_, err = r.Head(remote)
c.Assert(err, ErrorMatches, fmt.Sprintf("unable to find remote %q", remote))
+
+ remote = ""
+ _, err = r.Head(remote)
+ c.Assert(err, ErrorMatches, "cannot retrieve local head: no local data found")
}