diff options
Diffstat (limited to 'bpkg/fetch-git.cxx')
-rw-r--r-- | bpkg/fetch-git.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx index 6a1eadb..0c21af6 100644 --- a/bpkg/fetch-git.cxx +++ b/bpkg/fetch-git.cxx @@ -1537,7 +1537,13 @@ namespace bpkg cstrings ()), v, "origin", - remapped_refspecs ? *remapped_refspecs : refspecs)) + // + // Note that has_value() is used here to work around bogus + // "requires the compiler to capture 'this'" VC warning. + // + (remapped_refspecs.has_value () + ? *remapped_refspecs + : refspecs))) fail << "unable to fetch " << dir << endg; // If we fetched shallow then let's make sure that the method we use to |