mirror of
https://github.com/moghtech/komodo.git
synced 2026-08-24 08:00:17 +00:00
1.15.9 (#127)
* add close alert threshold to prevent Ok - Warning back and forth * remove part about repo being deleted, no longer behavior * resource sync share general common * remove this changelog. use releases * remove changelog from readme * write commit file clean up path * docs: supports any git provider repo * fix docs: authorization * multiline command supports escaped newlines * move webhook to build config advanced * parser comments with escaped newline * improve parser * save use Enter. escape monaco using escape * improve logic when deployment / stack action buttons shown * used_mem = total - available * Fix unrecognized path have 404 * webhooks will 404 if misconfigured * move update logger / alerter * delete migrator * update examples * publish typescript client komodo_client
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::path::Path;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use anyhow::Context;
|
||||
use command::run_komodo_command;
|
||||
@@ -18,7 +18,8 @@ pub async fn write_commit_file(
|
||||
file: &Path,
|
||||
contents: &str,
|
||||
) -> anyhow::Result<GitRes> {
|
||||
let path = repo_dir.join(file);
|
||||
// Clean up the path by stripping any redundant `/./`
|
||||
let path = repo_dir.join(file).components().collect::<PathBuf>();
|
||||
|
||||
if let Some(parent) = path.parent() {
|
||||
let _ = fs::create_dir_all(&parent).await;
|
||||
|
||||
Reference in New Issue
Block a user