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

2.19.0.rc2.windows.1: stash fails with dirty submodule

From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
Date
Sep 7, 2018, 12:31 UTC
Message-ID
<6e01daf2-5fb7-b6c0-2833-aa696241c609@virtuell-zuhause.de>
Hi,
(reported at [1] already but reposting here as suggested)
I'm using git with stash and rebase builtins.
$ git --version --build-options

git version 2.19.0.rc2.windows.1 cpu: x86_64 built from commit: 425f414f8e04123eacb5597776d6a8de445a8d8b sizeof-long: 4 sizeof-size_t: 8

With the following recipe

mkdir test cd test git init echo 1 > file git add file git commit file -m "message" git submodule add ./ mysubmod git commit -m "Add submodule" echo 2 > mysubmod/file git checkout -b mybranch git rebase -i --autosquash master

I get
Initialized empty Git repository in E:/projekte/test/.git/
[master (root-commit) 97c0108] message
 1 file changed, 1 insertion(+)
 create mode 100644 file
Cloning into 'E:/projekte/test/mysubmod'...
done.
[master 282a50f] Add submodule
 2 files changed, 4 insertions(+)
 create mode 100644 .gitmodules
 create mode 160000 mysubmod
Switched to a new branch 'mybranch'
M       mysubmod
fatal: Unexpected stash response: ''
and that used to work with older git versions.

Thanks for reading, Thomas

[1]: https://github.com/git-for-windows/git/issues/1820#issuecomment-419411808

Next: Jonathan Nieder
Message 1 of 3 in “2.19.0.rc2.windows.1: stash fails with dirty submodule”
  1. Thomas BraunSep 7, 2018
  2. Jonathan NiederSep 8, 2018
  3. Stefan BellerSep 11, 2018

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.