diff --git a/src/ssh.rs b/src/ssh.rs
index 15a2e93c109a84fd13c301bfe30793f564fba49a..988749823ec6fea252d65ef9336a90abd0984c7a 100644
--- a/src/ssh.rs
+++ b/src/ssh.rs
@@ -392,11 +392,6 @@
                         }
                         Some((_, Err(_))) | None => fail_git_channel(channel, session)?,
                     }
-                } else if packets.last() == Some(&Packet::Flush) {
-                    let mut response = Vec::new();
-                    encode_data(b"NAK\n", &mut response).expect("a NAK packet is within the limit");
-                    session.data(channel, response)?;
-                    self.git_channels.insert(channel, git);
                 } else {
                     self.git_channels.insert(channel, git);
                 }
diff --git a/tests/git_repository.rs b/tests/git_repository.rs
index 995d9701cc385e1e180ffdec186495b581053b45..022bdfdc843dc772e637c2af4214ae4499db6ea5 100644
--- a/tests/git_repository.rs
+++ b/tests/git_repository.rs
@@ -113,6 +113,9 @@
 
 fn make_fixture(path: &Path, format: &str) -> ObjectId {
     init_bare(path, format);
+    run(git(path).args(["config", "user.name", "Tit Test"]));
+    run(git(path).args(["config", "user.email", "tit@example.invalid"]));
+    run(git(path).args(["config", "tag.gpgsign", "false"]));
     let blob = write_blob(path, b"hello from tit\n");
     let tree = write_tree(path, blob, "non-ascii-\u{00e5}.txt");
     let commit = write_commit(path, tree, None, "first commit");
