aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch-git.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/fetch-git.cxx')
-rw-r--r--bpkg/fetch-git.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx
index c8f2523..d00690f 100644
--- a/bpkg/fetch-git.cxx
+++ b/bpkg/fetch-git.cxx
@@ -971,15 +971,17 @@ namespace bpkg
return load_refs (co, url ()).search_names (refname, abbr_commit);
};
- // Return the default reference set (see add-rep(1) for details).
+ // Return the default reference set (see repository-types(1) for details).
//
auto default_references = [&co, &url] () -> refs::search_result
{
refs::search_result r;
for (const ref& rf: load_refs (co, url ()))
{
- if (!rf.peeled && rf.name.compare (0, 11, "refs/tags/v") == 0 &&
- parse_standard_version (string (rf.name, 11)))
+ if (!rf.peeled &&
+ rf.name.compare (0, 11, "refs/tags/v") == 0 &&
+ parse_standard_version (string (rf.name, 11),
+ standard_version::allow_stub))
r.push_back (rf);
}