Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4498a9b

Browse files
author
Stephan Dilly
committed
try setting email
1 parent 018e87c commit 4498a9b

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

‎asyncgit/src/sync/commit.rs‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,18 @@ pub fn commit(repo_path: &str, msg: &str) -> Result<CommitId> {
8383
#[cfg(test)]
8484
mod tests {
8585

86-
use crate::error::Result;
87-
use crate::sync::{
88-
commit, get_commit_details, get_commit_files, stage_add_file,
89-
tests::{get_statuses, repo_init, repo_init_empty},
90-
utils::get_head,
91-
LogWalker,
86+
use crate::{
87+
error::Result,
88+
sync::{
89+
commit, get_commit_details, get_commit_files,
90+
stage_add_file,
91+
tests::{
92+
debug_cmd_print, get_statuses, repo_init,
93+
repo_init_empty,
94+
},
95+
utils::get_head,
96+
LogWalker,
97+
},
9298
};
9399
use commit::amend;
94100
use git2::Repository;
@@ -202,6 +208,11 @@ mod tests {
202208

203209
stage_add_file(repo_path, file_path).unwrap();
204210

211+
debug_cmd_print(
212+
repo_path,
213+
"git config user.email 'foo@bar.com'",
214+
);
215+
205216
let id = commit(repo_path, "commit msg").unwrap();
206217

207218
let details = get_commit_details(repo_path, id).unwrap();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /