diff options
author | Alberto Cortés <alberto@sourced.tech> | 2016-08-02 10:49:06 +0200 |
---|---|---|
committer | Alberto Cortés <alberto@sourced.tech> | 2016-08-02 10:49:06 +0200 |
commit | 7dffd7c467af7c7c79398e7997837b6e8c37e14f (patch) | |
tree | 535b7310da790ef1070bc60fd2ec617d1e423b74 /repository_test.go | |
parent | b5613047f0d1fc6f53d5a8ad1a05415ca9c6a92a (diff) | |
download | go-git-7dffd7c467af7c7c79398e7997837b6e8c37e14f.tar.gz |
add head support for local repos
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 4 |
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") } |