aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/fetch-git.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx
index abfed42..8c3f719 100644
--- a/bpkg/fetch-git.cxx
+++ b/bpkg/fetch-git.cxx
@@ -718,7 +718,7 @@ namespace bpkg
path p (n);
for (const ref& rf: *this)
{
- if (!rf.peeled && path_match (p, path (rf.name)))
+ if (!rf.peeled && path_match (path (rf.name), p))
{
// Note that the same name can be matched by different patterns
// (like /refs/** and /refs/tags/**), so we need to suppress