Some checks failed
CI / check (push) Failing after 17m48s
- Remove 'index 0000000..1111111' lines that made patches appear as new files - Fix hunk line counts in several patches - Add missing leading spaces to blank context lines - Temporarily disable statusline optimization patch (needs regenerating) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
668 B
Diff
26 lines
668 B
Diff
diff --git a/internal/git/git.go b/internal/git/git.go
|
|
--- a/internal/git/git.go
|
|
+++ b/internal/git/git.go
|
|
@@ -73,7 +73,19 @@ func copyDir(src, dest string) error {
|
|
srcPath := filepath.Join(src, entry.Name())
|
|
destPath := filepath.Join(dest, entry.Name())
|
|
|
|
- if entry.IsDir() {
|
|
+ // Handle symlinks (recreate them, do not follow)
|
|
+ if entry.Type()&os.ModeSymlink != 0 {
|
|
+ linkTarget, err := os.Readlink(srcPath)
|
|
+ if err != nil {
|
|
+ return err
|
|
+ }
|
|
+ if err := os.Symlink(linkTarget, destPath); err != nil {
|
|
+ return err
|
|
+ }
|
|
+ continue
|
|
+ }
|
|
+
|
|
+ if entry.IsDir() {
|
|
if err := copyDir(srcPath, destPath); err != nil {
|
|
return err
|
|
}
|
|
|