forked from mirrors/jj
spelling: the
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
99746a018b
commit
0e26e4bac4
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ impl CommitBuilder {
|
||||||
commit.predecessors = vec![predecessor.id().clone()];
|
commit.predecessors = vec![predecessor.id().clone()];
|
||||||
commit.committer = settings.signature();
|
commit.committer = settings.signature();
|
||||||
// If the user had not configured a name and email before but now they have,
|
// If the user had not configured a name and email before but now they have,
|
||||||
// update the the author fields with the new information.
|
// update the author fields with the new information.
|
||||||
if commit.author.name == UserSettings::user_name_placeholder() {
|
if commit.author.name == UserSettings::user_name_placeholder() {
|
||||||
commit.author.name = commit.committer.name.clone();
|
commit.author.name = commit.committer.name.clone();
|
||||||
}
|
}
|
||||||
|
|
|
@ -493,7 +493,7 @@ mod tests {
|
||||||
assert!(m.matches(&RepoPath::from_internal_string("foo")));
|
assert!(m.matches(&RepoPath::from_internal_string("foo")));
|
||||||
assert!(!m.matches(&RepoPath::from_internal_string("bar")));
|
assert!(!m.matches(&RepoPath::from_internal_string("bar")));
|
||||||
assert!(m.matches(&RepoPath::from_internal_string("foo/bar")));
|
assert!(m.matches(&RepoPath::from_internal_string("foo/bar")));
|
||||||
// Matches because the the "foo" pattern matches
|
// Matches because the "foo" pattern matches
|
||||||
assert!(m.matches(&RepoPath::from_internal_string("foo/baz/foo")));
|
assert!(m.matches(&RepoPath::from_internal_string("foo/baz/foo")));
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
Loading…
Reference in a new issue