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

Re: having to pull twice

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 25, 2008, 01:01 UTC
Message-ID
<20080925010150.GI3669@spearce.org>
In-Reply-To
<fb6605670809241758r186eef51sc6ed6d334a64495d@mail.gmail.com>
"Michael P. Soulier" <msoulier@digitaltorque.ca> wrote:
> I'm finding this happening from time to time.
> 
> soulierm@espresso:~/work/mitel-msl-tug$ git pull
...
Show 6 quoted lines
> error: Entry 'mitel-msl-tug.spec' not uptodate. Cannot merge.
> soulierm@espresso:~/work/mitel-msl-tug$ git status
> # On branch master
> # Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
> #
> nothing to commit (working directory clean)
...
> That directory is mounted via NFS, and I'm curious as to
> whether some kind of time skew could be the problem. But
> then, if it is, why did it go away after the first pull?
Time or dev/ino skew in the index file vs. what we read from stat.

Running git-status rematched the index file to the working directory, and during that rematch it noticed the file wasn't actually modified.

So it prints "nothing to commit" and the next pull works fine, now that the stat data in the index matches the working directory.

-- 
Shawn.
Previous: Michael P. SoulierNext: Thomas Rast
Message 2 of 11 in “having to pull twice”
  1. Michael P. SoulierSep 25, 2008
  2. Shawn O. PearceSep 25, 2008
  3. Thomas RastSep 25, 2008
  4. Alex RiesenSep 25, 2008
  5. Michael P. SoulierSep 25, 2008
  6. Miklos VajnaSep 25, 2008
  7. Thomas RastSep 27, 2008
  8. Miklos VajnaSep 28, 2008
  9. Thomas RastSep 28, 2008
  10. Miklos VajnaSep 29, 2008
  11. builtin-merge: refresh the index before calling a strategyMiklos Vajna, Oct 3, 2008

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.