mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-06 17:35:21 -05:00
[PR #282] [MERGED] feature: use the repo path instead of name in GetLatestCommit #3974
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/282
Author: @unsync
Created: 1/31/2025
Status: ✅ Merged
Merged: 2/7/2025
Merged by: @mbecker20
Base:
1.17.0← Head:bug/GetLatestCommit📝 Commits (5)
325a477Update repo path handling in commit fetchinga23361efeat: use optional name and path in GetLatestCommitc5ada3freview: don't use optional for name9518a86review: use helperbbefca8review: remove redundant to_string()📊 Changes
4 files changed (+11 additions, -3 deletions)
View changed files
📝
.gitignore(+2 -1)📝
bin/core/src/monitor/mod.rs(+2 -0)📝
bin/periphery/src/api/git.rs(+6 -2)📝
client/periphery/rs/src/api/git.rs(+1 -0)📄 Description
I had these annoying warning in my logs :
I did some digging, forked the repo, added the
repo_pathto the error log and i think i found the issue.The
GetLatestCommitcommand takes the repo name as set in the UI, but since we can override the clone path we can end up is a different path than this :So the fix, imho, should be to use the repo
pathinstead of the name, since even if we don't override the clone path, there is always a value set :I'm not sure what is the contributions guidelines in terms of testing, but on my end what i did was to build the docker images, pulled it on my servers and saw i didn't get the warnings anymore.
Feedback welcomed 🙏
PS: i based this PR on the 1.17 branch, but i have a branch ready with the same change for 1.16
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.