Skip to content

Commit

Permalink
sanitize path in windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 8, 2023
1 parent 6babe50 commit d922914
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/sugar/git.nu
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,13 @@ export module prompt {
assert prompt $"($repo | path basename) \(_:($hash)\) "

cd ..
assert prompt $"($repo | path dirname | simplify-path) "
# FIXME: use `path sanitize` from `nu-git-manager`
let expected_pwd = $repo
| path dirname
| str replace --regex '^.:' ''
| str replace --all '\' '/'
| simplify-path
assert prompt $"($expected_pwd) "

clean $repo
}
Expand Down

0 comments on commit d922914

Please sign in to comment.