summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-11 22:22:14 +0200
committernulltoken <emeric.fermas@gmail.com>2012-05-18 00:26:04 +0200
commit392eced6f08b36fedf80287702d1aaf410c7079f (patch)
tree7231c837db98b8415b13e898db431b78380fae50 /src
parent88d6e044080e90494e0fc2f073aa0c82973d32e7 (diff)
downloadlibgit2-392eced6f08b36fedf80287702d1aaf410c7079f.tar.gz
branch: retrieve symbolic references when listing the branches
Diffstat (limited to 'src')
-rw-r--r--src/branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/branch.c b/src/branch.c
index 6d5880cb2..881e749a8 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -170,7 +170,7 @@ int git_branch_list(git_strarray *branch_names, git_repository *repo, unsigned i
filter.branchlist = &branchlist;
filter.branch_type = list_flags;
- error = git_reference_foreach(repo, GIT_REF_OID|GIT_REF_PACKED, &branch_list_cb, (void *)&filter);
+ error = git_reference_foreach(repo, GIT_REF_LISTALL, &branch_list_cb, (void *)&filter);
if (error < 0) {
git_vector_free(&branchlist);
return -1;