Skip to content

Commit 56d16c8

Browse files
committed
trivial fix
1 parent 58d62ee commit 56d16c8

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ graph TD;
6464
- If zstd compression has the opposite effect, skip compression.
6565
- Decrypt all files with extension `.enc`, `.zst.enc`.
6666

67+
## Develop
68+
69+
- for testing, please use `cargo test -- --test-threads=1`
70+
6771
## TODO
6872

6973
- [ ] zstd effect checking

docs/README_zh-CN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ graph TD;
6464
- 如果 zstd 压缩后具有反效果,则跳过压缩。
6565
- 解密时对所有 `.enc`, `.zst.enc` 进行解密。
6666

67+
## 贡献
68+
69+
- 测试需要使用单线程:`cargo test -- --test-threads=1` (原因是会用到 `std::env::current_dir`
70+
6771
## TODO
6872

6973
- [ ] zstd effect checking

src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ impl Config {
8383
"get absolute path `{:?}`, please use relative path instead",
8484
path_relative_to_repo
8585
);
86+
// there's no need to use ``, the output path has ""
8687
info!(
87-
"Add to crypt list: `{}`",
88+
"Add to crypt list: {}",
8889
format!("{:?}", path_relative_to_repo).green()
8990
);
9091
self.crypt_list.push(

src/repo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl Repo {
8686
}
8787
pub fn get_key(&self) -> String {
8888
self.get_config("key")
89-
.die("Key not found, please exec `git-se set key <KEY>` first.")
89+
.die("Key not found, please exec `git-se p` first.")
9090
}
9191

9292
/// returns the first 16 bytes of sha3-224 of the key.

0 commit comments

Comments
 (0)