Fix build

This commit is contained in:
Martín Lucas Golini
2024-01-20 23:07:20 -03:00
parent f96ca02fab
commit 661748f15f
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ std::vector<Git::Branch> Git::getAllBranchesAndTags( RefType ref, const std::str
auto headOrigins = getHeadOrigins( projectDir );
readAllLines( buf, [&branches, ref, &headOrigins, this]( const std::string_view& line ) {
readAllLines( buf, [&]( const std::string_view& line ) {
auto branch = String::trim( String::trim( line, '\n' ), '\'' );
if ( ( ref & Head ) && String::startsWith( branch, "refs/heads/" ) ) {
branches.emplace_back( parseLocalBranch( branch, headOrigins ) );
+1
View File
@@ -1,6 +1,7 @@
#include <cstdint>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
namespace ecode {