diff --git a/src/diff.rs b/src/diff.rs
index 7000e689525cff918c1b77d0df7502a216b37c4e..b3b8d00002db3cf6cc32d39ceaff9838fdc12887 100644
--- a/src/diff.rs
+++ b/src/diff.rs
@@ -11,7 +11,7 @@ pub fn compute_diff(commit1: &str, commit2: &Option<String>) {
             // Create an archive with the content of the current commit
             let tmp_name = format!("{}-tmp", commit1);
             checkout::silent_commit(String::from("none"), tmp_name.clone(), false);
-            checkout::is_diff(&commit1, &tmp_name, &borg_path, false);
+            checkout::is_diff(commit1, &tmp_name, &borg_path, false);
             commit::delete_commit(&tmp_name, &borg_path);
         }
     }