michal/tit
Browse tree · Show commit · Download archive
Diff
f53dd2bd7646 → 7e109e94afa3
src/ssh.rs
Mode 100644 → 100644; object 15a2e93c109a → 988749823ec6
@@ -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);
}
tests/git_repository.rs
Mode 100644 → 100644; object 995d9701cc38 → 022bdfdc843d
@@ -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");