diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-26 16:28:09 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-26 16:28:09 +0000 |
| commit | bdf71cb3d5a5ff8399c10c8d2492d3dd01c5fa33 (patch) | |
| tree | 057008f20a0206f76b4a64f39fb12417c2e018a0 /src/bin/ngit | |
| parent | 08397221abcd009fee1ab1b69d92b107b604bee1 (diff) | |
test(login): update `ngit login` test
to reflect the new interface and testing only nsec login
Diffstat (limited to 'src/bin/ngit')
| -rw-r--r-- | src/bin/ngit/sub_commands/login.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index 29b4e81..ff58ec6 100644 --- a/src/bin/ngit/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs | |||
| @@ -61,7 +61,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { | |||
| 61 | 61 | ||
| 62 | /// return ( bool - logged out, bool - log in to local git locally) | 62 | /// return ( bool - logged out, bool - log in to local git locally) |
| 63 | async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool)> { | 63 | async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool)> { |
| 64 | for source in if local_only { | 64 | for source in if local_only || std::env::var("NGITTEST").is_ok() { |
| 65 | vec![SignerInfoSource::GitLocal] | 65 | vec![SignerInfoSource::GitLocal] |
| 66 | } else { | 66 | } else { |
| 67 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] | 67 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] |