You might also see: git-pull cannot be used without a working tree
When executing a pull you see something like this:
1 | fatal: C:\Program Files\Git/libexec/git-core/git-pull cannot be used without a working tree. |
To Fix:
Check under:
1 | \.git\config |
Under the [CORE]
1 2 3 4 5 6 7 8 | [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false autocrlf = false worktree = <<<<<< DELETE THIS LINE!! |
Have the same problem – and no such line under CORE.
Windows XP Pro SP3.
Git does not work.
Tortoise Git CLONE works.
Tortoise Git PULL does not work.
Horrible system.
I can report that in Cygwin this fix works. Deleted the worktree attribute and I was able to start working with submodules in my parent repo.
Thanks!