summaryrefslogtreecommitdiff
path: root/pack-bitmap-write.c
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2021-05-31 14:51:21 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-06-02 10:12:02 +0900
commit1afd78fb5c29b8ad95de072bb8a0edacc69db61a (patch)
treebb354abd69366e493db1c351ff747563b83b7da9 /pack-bitmap-write.c
parentpush: factor out the typical case (diff)
downloadtgif-1afd78fb5c29b8ad95de072bb8a0edacc69db61a.tar.xz
push: remove redundant check
If fetch_remote is NULL (i.e. the branch remote is invalid), then it can't possibly be same as remote, which can't be NULL. The check is redundant, and so is the extra variable. Also, fix the Yoda condition: we want to check if remote is the same as the branch remote, not the other way around. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap-write.c')
0 files changed, 0 insertions, 0 deletions