abentley / oaf

A Git client that brings a more user-friendly CLI to Git.
Apache License 2.0
9 stars 1 forks source link

Symlinks confuse 'oaf switch' #38

Closed abentley closed 2 years ago

abentley commented 2 years ago

When running in a symlinked directory, oaf switch dies:

$ oaf switch foo
thread 'main' panicked at 'Could not find self in worktree list.', src/worktree.rs:601:16
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This appears to be because the cwd is a symlink, causing the git output to be a symlink. Normalizing both should fix this.