1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-28 12:10:52 +00:00
starship/tests/testsuite
SeongChan Lee 611a754ec7
fix(directory): Fix path contractions for symlinked git repos (#1299)
Fixes git repo path contractions in two situations:

1. When path obtained from `PWD` is a logical path but git libraries
   return physical paths.
2. When a git repository's subdirectory is symlinked to ouside of the
   repository tree.

(1) is fixed by implementing a realpath()-like function, then reparsing
the (possibly logical) `PWD` using realpath() to convert logical
components into physical ones. The physical paths are then matched
against each other.

In the case of (2), the default behavior has been changed by simply
contracting to the home directory, exactly the same as if we are not in
a repo at all. Because determining the correct contraction is not
obvious, we bail out and just pretend we are not in a repo at all.
2020-06-17 22:44:51 -05:00
..
aws.rs fix: Fix latest clippy suggestions (#1136) 2020-04-24 12:37:13 +02:00
character.rs Support vicmd_symbol in fish-shell (#254) 2019-08-31 00:59:18 -07:00
cmd_duration.rs fix: Fix incorrect prefix usage in cmd_duration module (#832) 2020-01-18 01:15:08 -06:00
common.rs fix: possible fix for Intermittent Test Failures in GH Actions (#987) 2020-03-15 12:12:25 -05:00
conda.rs fix: Do not depend on user's config in conda tests (#1098) 2020-04-13 21:23:49 +02:00
configuration.rs fix: Lazy load git repo and only run module if not disabled (#306) 2019-09-09 19:14:38 -04:00
directory.rs fix(directory): Fix path contractions for symlinked git repos (#1299) 2020-06-17 22:44:51 -05:00
dotnet.rs fix: possible fix for Intermittent Test Failures in GH Actions (#987) 2020-03-15 12:12:25 -05:00
env_var.rs feat: Add Environment Variable module (#409) 2019-09-26 17:30:58 +09:00
git_branch.rs fix(git): show branch name in fresh repo (unborn master) (#1093) 2020-05-06 11:19:53 +02:00
git_commit.rs test: Add null tests to modules that don't have them (#1104) 2020-04-15 09:55:32 +02:00
git_state.rs fix: Fix latest clippy suggestions (#1136) 2020-04-24 12:37:13 +02:00
git_status.rs fix: Fix latest clippy suggestions (#1136) 2020-04-24 12:37:13 +02:00
hg_branch.rs fix: Fix latest clippy suggestions (#1136) 2020-04-24 12:37:13 +02:00
hostname.rs feat: Add configuration for hostname truncation (#485) 2019-10-15 01:22:25 +09:00
jobs.rs fix: Lazy load git repo and only run module if not disabled (#306) 2019-09-09 19:14:38 -04:00
line_break.rs Refactor integration tests (#71) 2019-06-06 13:18:00 +01:00
main.rs feat: add singularity module (#932) 2020-02-26 11:18:19 -05:00
modules.rs fix: Change panicking on unknown module to error print and support module listing flag (#197) 2019-08-20 00:42:25 -04:00
nix_shell.rs feat(nix_shell): add symbol to nix-shell module (#1058) 2020-04-07 18:35:18 +02:00
python.rs feat(python): Add option to change the python binary (#1297) 2020-06-14 11:27:10 +02:00
singularity.rs test: Add null tests to modules that don't have them (#1104) 2020-04-15 09:55:32 +02:00
terraform.rs fix: Fix latest clippy suggestions (#1136) 2020-04-24 12:37:13 +02:00
time.rs revert: chore: Remove logic for the disabled option from modul… (#489) 2019-10-05 19:03:48 +09:00
username.rs feat: Add option to always show the username module (#408) 2019-09-22 15:32:11 -05:00