git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Aw: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"

From
Thomas Ackermann <th.acker@arcor.de>
Date
Jan 6, 2014, 09:08 UTC
Message-ID
<1283978462.720554.1388999328222.JavaMail.ngmail@webmail15.arcor-online.net>
In-Reply-To
<CAGyf7-FX1sPjwvKdxeEXopffFPiftgDRqoe7NRWyM1Cm=5n6Sw@mail.gmail.com>
Show 8 quoted lines
> 
> Unfortunately that's not true. In repo_b your ref for origin/master
> has not moved. It has remotely (meaning refs/heads/master in repo_a
> has moved), but git status is not hitting the remote to find out; it
> only looks at the local state. To see what I mean, run git fetch in
> repo_b. Once you do that, you'll see that git status correctly reports
> you're behind.
> 

OK; my expectation was, that the remote is checked for this ... I see that this feature is useful for all non-trivial use cases where you have several branches beside master for which the remotes will be updated by git fetch. But for the simple use case where you only have a master branch I consider it not really helpful and - at least for me - misleading.

--- Thomas

Previous: Bryan TurnerNext: Jonathan Nieder
Message 3 of 8 in “Aw: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"”
  1. Thomas AckermannJan 6, 2014
  2. Bryan TurnerJan 6, 2014
  3. Aw: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"Thomas Ackermann, Jan 6, 2014
  4. Jonathan NiederJan 6, 2014
  5. Aw: Re: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"Thomas Ackermann, Jan 6, 2014
  6. Junio C HamanoJan 6, 2014
  7. Keshav KiniJan 14, 2014
  8. Jiang XinJan 6, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.