aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-26 16:21:20 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-26 16:21:20 (GMT)
commitd5e755ebe85271e65d69afb38d6548d33e55e79e (patch)
tree9617bbea38cba8abe075ba3fe02f7a7e3aa0e6ca
parent7c788e91f188402ccbe7c71ea564ffd14caaf977 (diff)
Add stub version tags to git repository default set
-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);
}