WIP: add FIXME notes for commit_log
All checks were successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-05-25 11:29:08 +01:00
parent a259fd3552
commit cde9531150
2 changed files with 3 additions and 0 deletions

View file

@ -204,6 +204,8 @@ async fn get_commit_history(
info!("new version matches");
Ok(updated)
} else {
// FIXME: log original and updated on seperate log lines - can't find where one ends and
// the other beings!
error!(?updated, ?original, "new version doesn't match original");
Ok(original)
}

View file

@ -111,6 +111,7 @@ impl super::OpenRepositoryLike for RealOpenRepository {
branch_name: &config::BranchName,
find_commits: &[git::Commit],
) -> Result<Vec<crate::Commit>, git::commit::log::Error> {
// FIXME: only finds 'main', does it need to prefix branch_name with 'origin/'?
self.0
.lock()
.map_err(|_| git::commit::log::Error::Lock)