Fix reference test case
Now git_reference_lookup says "foo" is an invalid reference name (returns GITERR_REFERENCE instead of GIT_ENOTFOUND).
This commit is contained in:
		| @@ -67,7 +67,7 @@ class ReferencesTest(utils.RepoTestCase): | ||||
|         repo = self.repo | ||||
|  | ||||
|         # Raise KeyError ? | ||||
|         self.assertRaises(KeyError, repo.lookup_reference, 'foo') | ||||
|         self.assertRaises(KeyError, repo.lookup_reference, 'refs/foo') | ||||
|  | ||||
|         # Test a lookup | ||||
|         reference = repo.lookup_reference('refs/heads/master') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 J. David Ibáñez
					J. David Ibáñez