Skip to content

Commit 1e4ae42

Browse files
committed
SQUASH???
1 parent be927d5 commit 1e4ae42

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

builtin/receive-pack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,13 +928,13 @@ static int read_proc_receive_report(struct packet_reader *reader,
928928
}
929929
if (reader->pktlen > len)
930930
strbuf_addstr(&extended_status, (char *)reader->line + len + 1);
931-
if (oidcmp(&hint->old_oid, &old_oid)) {
931+
if (!oideq(&hint->old_oid, &old_oid)) {
932932
oidcpy(&hint->old_oid, &old_oid);
933933
strbuf_addf(&extended_status, "%sold-oid=%s",
934934
extended_status.len > 0 ? " ": "",
935935
oid_to_hex(&old_oid));
936936
}
937-
if (oidcmp(&hint->new_oid, &new_oid)) {
937+
if (!oideq(&hint->new_oid, &new_oid)) {
938938
oidcpy(&hint->new_oid, &new_oid);
939939
strbuf_addf(&extended_status, "%snew-oid=%s",
940940
extended_status.len > 0 ? " ": "",

transport.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,8 @@ static void print_ref_status(char flag, const char *summary,
512512
}
513513
fputc('\n', stderr);
514514
}
515-
if (from_name)
516-
free(from_name);
517-
if (to_name)
518-
free(to_name);
515+
free(from_name);
516+
free(to_name);
519517
}
520518

521519
static void print_ok_ref_status(struct ref *ref, int porcelain, int summary_width)

0 commit comments

Comments
 (0)