windows - Cygwin: Git stash -> Cannot save the current index state -


i'm using cygwin under windows command line stuff. 1 of commands use git stash. since few weeks error when use it: cannot save current index state

i tried in other projects, no project related issue. history not broken or that. don't use don't know when issue started.

the error thrown on line 110 of git-stash file. that's why debugged 2 lines before.

$(printf 'index on %s\n' "$msg" |  git commit-tree $i_tree -p $b_commit) 

when echo first command outputs last commit. seems ok. when output both commands piped empty, maybe wrong "git commit-tree $i_tree -p $b_commit". google long time not able find solution issue.

cygwin git version: 2.14.1

cygwin x64 version: 2.8.2(0.313/5/3)

first, check if issue persists bash (the bash packaged git). make sure set path in order to:

  • no include cygwin
  • include git/bin, git/usr/bin, git/mingw64/bin: see this example.
    working simplified path (for testing purposes) important make sure there no side-effect other software.

second, try , add git status in git stash critical lines, see if git repo status reveal suspicious.


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

string - Using python and postgres, variables within execute function? -