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

'git pull' complains that a locally resurrected directory would be overwritten by merge when no pulled changes are affecting that directory

From
YYuri <yuri@rawbw.com>
Date
Aug 24, 2021, 16:41 UTC
Message-ID
<01514401-78f6-3fdc-aa74-c519fb6ab427@rawbw.com>

In the FreeBSD ports repository I resurrected the directory (that was removed a long time ago) with the command:

 > $ git checkout {hash}~1 -- math/polymake
I made local changes to this directory and called 'git add math/polymake'.
Then 'git pull' complained:
 > $ git pull
 > error: Your local changes to the following files would be overwritten 
by merge:
 >   math/polymake/Makefile math/polymake/distinfo 
math/polymake/files/patch-Makefile 
math/polymake/files/patch-support_install.pl math/polymake/pkg-descr 
math/polymake/pkg-plist

No incoming changes affect math/polymake. Nobody has created this directory simultaneously with me. There is no intersection with incoming changes.

Why does 'git pull' complain then?
Yuri
Next: Jeff King
Message 1 of 9 in “'git pull' complains that a locally resurrected directory would be overwritten by merge when no pulled changes are affecting that directory”
  1. YuriAug 24, 2021
  2. Jeff KingAug 25, 2021
  3. Elijah NewrenAug 25, 2021
  4. Jeff KingAug 25, 2021
  5. Junio C HamanoAug 25, 2021
  6. Jeff KingAug 27, 2021
  7. Elijah NewrenAug 28, 2021
  8. Bagas SanjayaAug 25, 2021
  9. YuriAug 25, 2021

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.