]> git.99rst.org Git - git.git/commit
remote: qualify "git pull" advice for non-upstream compareBranches
authorHarald Nordgren <redacted>
Thu, 21 May 2026 14:06:07 +0000 (14:06 +0000)
committerJunio C Hamano <redacted>
Fri, 22 May 2026 00:34:20 +0000 (09:34 +0900)
commit4b0a8b2506494323ae5c209ee7df6c08fec3831d
tree04e18477e3dcac0b0dc9fa8fdbd6dacd18fbeddf
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
remote: qualify "git pull" advice for non-upstream compareBranches

Enable ENABLE_ADVICE_PULL for push-branch comparisons too, not just
the upstream entry, so the "use git pull" hint prints when the local
branch is behind its push branch.

Spell out "git pull <remote> <branch>" so running the suggested
command actually pulls the ref the user was told about; plain
"git pull" would fetch the upstream instead.

Signed-off-by: Harald Nordgren <redacted>
Signed-off-by: Junio C Hamano <redacted>
remote.c
t/t6040-tracking-info.sh
git clone https://git.99rst.org/PROJECT