Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reference update request #14

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
8 changes: 7 additions & 1 deletion crates/git-remote-helper/src/commands/push.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// https://git-scm.com/docs/pack-protocol#_reference_update_request_and_packfile_transfer

use crate::git::service::receive_pack;
use anyhow::anyhow;
use git::bstr::ByteSlice as _;
Expand Down Expand Up @@ -198,8 +200,12 @@ where
// We parse the status report from the response and write our own
// status report to stdout in the format that remote helpers are
// expected to produce.
//
// FIXME: we only want to include the capability list on the first
// line.
let chunk = format!(
"{} {} {}\0 report-status report-status-v2 \n",
// TODO: object-format=sha1 and agent=
"{} {} {}\0report-status report-status-v2\n",
dst_id.to_hex(),
src_id.to_hex(),
dst
Expand Down