Fix compiler warning

This commit is contained in:
Oliver Hamlet
2017-03-21 17:55:49 +00:00
parent 58bee05e68
commit 415c4b6810
+1 -1
View File
@@ -110,7 +110,7 @@ bool Masterlist::IsLatest(const boost::filesystem::path& path,
git_oid headOid;
git.Call(git_reference_name_to_id(&headOid, git.GetData().repo, "HEAD"));
return boost::equal(branchOid.id, headOid.id);
return memcmp(branchOid.id, headOid.id, 20) == 0;
}
bool Masterlist::Update(const boost::filesystem::path& path, const std::string& repoUrl, const std::string& repoBranch) {