From 4a53b2c8aeb6fe2e36e7bab2c5154bb8cdade895 Mon Sep 17 00:00:00 2001 From: djmattyg007 Date: Sat, 23 Aug 2014 11:15:49 +1000 Subject: [PATCH] Add note about including remote name when looking up remote branch --- src/repository.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/repository.c b/src/repository.c index 6f40dfd..8a1400e 100644 --- a/src/repository.c +++ b/src/repository.c @@ -295,7 +295,9 @@ Repository_git_object_lookup_prefix(Repository *self, PyObject *key) PyDoc_STRVAR(Repository_lookup_branch__doc__, "lookup_branch(branch_name, [branch_type]) -> Object\n" "\n" - "Returns the Git reference for the given branch name (local or remote)."); + "Returns the Git reference for the given branch name (local or remote).\n" + "If branch_type is GIT_BRANCH_REMOTE, you must include the remote name\n" + "in the branch name (eg 'origin/master')."); PyObject * Repository_lookup_branch(Repository *self, PyObject *args)