aboutsummaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-07 21:19:18 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-07 21:19:18 +0100
commit8342f640b50e2f1be70e1041edb4028f046a4df8 (patch)
tree7e2bec0fcf6e0280f274178d52cfc2e9fc2b9b7f /src/remote
parent1016849fce02a25f35fb00ce80ba1021eb54fe08 (diff)
Lint git remote
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/git.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/remote/git.rs b/src/remote/git.rs
index d15e002..556bed4 100644
--- a/src/remote/git.rs
+++ b/src/remote/git.rs
@@ -170,7 +170,11 @@ mod tests {
git.sync_up(&remote_dir_as_string, &local_dir)
.expect("Could not sync up to remote");
assert_file_in_repo_with_contents(&remote_dir_as_string, "file1.txt", "I exist");
- assert_file_in_repo_with_contents(&remote_dir_as_string, "file2.txt", "I also exist now, btw");
+ assert_file_in_repo_with_contents(
+ &remote_dir_as_string,
+ "file2.txt",
+ "I also exist now, btw",
+ );
}
#[test]
@@ -233,7 +237,11 @@ mod tests {
assert_file_contents(&local_dir.join("file1.txt"), "I exist, but remotely");
assert!(!&local_dir.join("file2.txt").exists());
- commit_file_to_remote(&remote_dir_as_string, "file2.txt", "I also exist, but remotely");
+ commit_file_to_remote(
+ &remote_dir_as_string,
+ "file2.txt",
+ "I also exist, but remotely",
+ );
assert!(!&local_dir.join("file2.txt").exists());
git.sync_down(&remote_dir_as_string, &local_dir)
.expect("Could not sync down from remote");