Commit e4579ee
fix(plugin): git_clone でシェル CWD 削除時の失敗を回避
シェルのカレントディレクトリが削除された状態で `devbase plugin update` を
実行すると、Python から `git clone` を呼ぶ際に無効な CWD を継承し、
git-remote-https ヘルパが起動時に getcwd() ENOENT で落ちていた:
fatal: Unable to read current working directory: No such file or directory
fatal: remote helper 'https' aborted session
`git_clone()` で subprocess.run() に `cwd=dest.parent` を明示し、
親プロセスの CWD に依存しないようにする。`dest.parent.mkdir(parents=True,
exist_ok=True)` で cwd 用ディレクトリの存在も保証する。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4d16449 commit e4579ee
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments