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

3 messages from 2018-09-07 to 2018-09-11. Participants: Thomas Braun, Jonathan Nieder, Stefan Beller.
Thread: https://gitlist.dev/t/49298

## Thomas Braun, 2018-09-07 12:31

Subject: 2.19.0.rc2.windows.1: stash fails with dirty submodule
Message-ID: <6e01daf2-5fb7-b6c0-2833-aa696241c609@virtuell-zuhause.de>
URL: https://gitlist.dev/e/6e01daf2-5fb7-b6c0-2833-aa696241c609%40virtuell-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

```

## Jonathan Nieder, 2018-09-08 00:35

Subject: Re: 2.19.0.rc2.windows.1: stash fails with dirty submodule
Message-ID: <20180908003514.GC225427@aiede.svl.corp.google.com>
URL: https://gitlist.dev/e/20180908003514.GC225427%40aiede.svl.corp.google.com
In-Reply-To: <6e01daf2-5fb7-b6c0-2833-aa696241c609@virtuell-zuhause.de>

```
Hi,

Thomas Braun wrote:

> I'm using git with stash and rebase builtins.
>
> $ git --version --build-options
>
> git version 2.19.0.rc2.windows.1
[...]
> 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
[...]
> fatal: Unexpected stash response: ''
>
> and that used to work with older git versions.

Thanks for reporting.  I'm cc-ing Dscho, who has been looking for
reports of issues with the new experimental stash and rebase code[2].

Thanks,
Jonathan

> [1]:
> https://github.com/git-for-windows/git/issues/1820#issuecomment-419411808
[2] https://public-inbox.org/git/nycvar.QRO.7.76.6.1808241320540.73@tvgsbejvaqbjf.bet/

```

## Stefan Beller, 2018-09-11 22:24

Subject: Re: 2.19.0.rc2.windows.1: stash fails with dirty submodule
Message-ID: <CAGZ79kadU6Lb14pwJQv=bYrn5wJxO_0UeoSN5BO0t44HC3q6rg@mail.gmail.com>
URL: https://gitlist.dev/e/CAGZ79kadU6Lb14pwJQv%3DbYrn5wJxO_0UeoSN5BO0t44HC3q6rg%40mail.gmail.com
In-Reply-To: <20180908003514.GC225427@aiede.svl.corp.google.com>

```
On Fri, Sep 7, 2018 at 5:35 PM Jonathan Nieder <jrnieder@gmail.com> wrote:
>
> Hi,
>
> Thomas Braun wrote:
>
> > I'm using git with stash and rebase builtins.
> >
> > $ git --version --build-options
> >
> > git version 2.19.0.rc2.windows.1
> [...]
> > 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
> [...]
> > fatal: Unexpected stash response: ''
> >
> > and that used to work with older git versions.
>
> Thanks for reporting.  I'm cc-ing Dscho, who has been looking for
> reports of issues with the new experimental stash and rebase code[2].

(It tests fine on my machine and I have no Windows machine at hand,
so ...)
This finally gave me an opportunity to play around with gitgitgadget
and its integrated CI for all major OS, see
https://github.com/gitgitgadget/git/pull/38
which is just the bug report put into our test suite.

```
