diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-17 16:51:17 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-17 16:51:17 -0700 |
| commit | 6ec01e6361f7d71d8f080d9d28c966a73ecdb3b3 (patch) | |
| tree | f5e858539f6232a4b78f68a9b89ba4f128f5a841 /src | |
| parent | 52695898e55f37cf657592dd9d7946c5a7938038 (diff) | |
| parent | 392eced6f08b36fedf80287702d1aaf410c7079f (diff) | |
| download | libgit2-6ec01e6361f7d71d8f080d9d28c966a73ecdb3b3.tar.gz | |
Merge pull request #685 from nulltoken/fix/list-remote-branches
branch: retrieve symbolic references when listing the branches
Diffstat (limited to 'src')
| -rw-r--r-- | src/branch.c | 2 |
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; |
