Skip to content

Commit

Permalink
Fix issue with check
Browse files Browse the repository at this point in the history
  • Loading branch information
ashikmeerankutty committed Jul 13, 2023
1 parent 54cc9c1 commit 49eb675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn main() {
let current_user_email: std::borrow::Cow<'_, str> =
String::from_utf8_lossy(&current_user_email_output.stdout);

if current_user_name != config.username || current_user_email != config.email {
if current_user_name.trim() != config.username || current_user_email.trim() != config.email {
if origin_url.contains(&config.host) {
let username_output = Command::new("git")
.arg("config")
Expand Down

0 comments on commit 49eb675

Please sign in to comment.