Skip to content

Commit

Permalink
Add note about including remote name when looking up remote branch
Browse files Browse the repository at this point in the history
  • Loading branch information
djmattyg007 committed Aug 23, 2014
1 parent e4315aa commit 4a53b2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/repository.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a53b2c

Please sign in to comment.