mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-17 15:34:54 +00:00
fix(branch): ignore dev-fast CLI shims
This commit is contained in:
+3
-1
@@ -34,10 +34,12 @@ result
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
|
||||
# Binary symlinks in codex-cli/bin
|
||||
# Binary symlinks generated by dev-fast builds
|
||||
codex-cli/bin/*-darwin
|
||||
codex-cli/bin/*-linux-*
|
||||
codex-cli/bin/*-windows-*
|
||||
code-rs/code-cli/bin/
|
||||
codex-rs/codex-cli/bin/
|
||||
|
||||
# Rust build artifacts
|
||||
/codex-rs/target/
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
:../../target/dev-fast/code
|
||||
@@ -1 +0,0 @@
|
||||
../../target/dev-fast/coder
|
||||
@@ -425,8 +425,12 @@ pub async fn copy_uncommitted_to_worktree(src_root: &Path, worktree_path: &Path)
|
||||
if rel.starts_with(".git/") { continue; }
|
||||
let from = src_root.join(&rel);
|
||||
let to = worktree_path.join(&rel);
|
||||
let meta = match tokio::fs::metadata(&from).await { Ok(m) => m, Err(_) => continue };
|
||||
if !meta.is_file() { continue; }
|
||||
let meta = match tokio::fs::symlink_metadata(&from).await { Ok(m) => m, Err(_) => continue };
|
||||
if meta.file_type().is_symlink() {
|
||||
// Build outputs often exist as symlinks into target/; skip them so /branch is resilient.
|
||||
continue;
|
||||
}
|
||||
if !meta.file_type().is_file() { continue; }
|
||||
if let Some(parent) = to.parent() { tokio::fs::create_dir_all(parent).await.map_err(|e| format!("Failed to create dir {}: {}", parent.display(), e))?; }
|
||||
// Use copy for files; skip if it's a directory (shouldn't appear from ls-files)
|
||||
match tokio::fs::copy(&from, &to).await {
|
||||
|
||||
Reference in New Issue
Block a user