git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* "Not possible to fast-forward" when pull.ff=only and new commits on remote
@ 2021-10-19 17:23 Kenneth Arnold
  2021-10-19 21:22 ` Jeff King
  0 siblings, 1 reply; 9+ messages in thread
From: Kenneth Arnold @ 2021-10-19 17:23 UTC (permalink / raw)
  To: git@vger.kernel.org

After upgrade to 2.33.1, the behavior of `pull.ff=only` has changed in a way that breaks some workflows, notably the default used in VSCode.

Example (specific repo doesn't matter)

```
$ git clone git@github.com:kcarnold/util.git
...
$ cd util
$ echo "" > test
$ git add test
$ git commit -m "Test"
$ git -c pull.ff=only pull
fatal: Not possible to fast-forward, aborting.
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
```

Previously this pull succeeded without error, which was as expected because no merge was necessary. 

VS Code users have reported this problem because that editor has a "sync" option that seems to run something like `git pull && git push`.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-21  6:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 17:23 "Not possible to fast-forward" when pull.ff=only and new commits on remote Kenneth Arnold
2021-10-19 21:22 ` Jeff King
2021-10-20 16:28   ` Junio C Hamano
2021-10-20 17:09     ` Jeff King
2021-10-20 19:19       ` Junio C Hamano
2021-10-20 20:36         ` Jeff King
2021-10-20 19:02     ` [PATCH v2] pull: --ff-only should make it a noop when already-up-to-date Junio C Hamano
2021-10-20 20:45       ` Jeff King
2021-10-21  6:38         ` Alex Henrie

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).