{"thread":{"id":"44793","subject":"Bug: Assertion failed: function prefix_pathspec, file pathspec.c, line 317.","startedAt":"2016-12-29T23:38:25Z","lastAt":"2016-12-29T23:45:47Z","messageCount":2,"participants":["Rafal W","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"308505","messageId":"CANmdXCEGTxgj8BuQZkaBQaktOBrGmLETcQJg9xfV27Kn-0aLGA@mail.gmail.com","threadId":"44793","inReplyTo":null,"subject":"Bug: Assertion failed: function prefix_pathspec, file pathspec.c, line 317.","fromName":"Rafal W","fromEmail":"kenorb@gmail.com","sentAt":"2016-12-29T23:37:58Z","receivedAt":"2016-12-29T23:38:25Z","isPatch":false,"sender":{"key":"kenorb@gmail.com","avatar":"https://gravatar.com/avatar/5223d26ff54c24b385fcbcd712bf4e6ed3ad2e6b4d4b2b68fd5c74bd557ecb74?d=mp&s=160"},"body":"The following error happens when I'm running \"git add .\" in the submodule dir:\n\n$ GIT_TRACE=1 git add .\n23:25:18.313575 git.c:350               trace: built-in: git 'add' '.'\nAssertion failed: (item->nowildcard_len <= item->len && item->prefix\n<= item->len), function prefix_pathspec, file pathspec.c, line 317.\nAbort trap: 6\n\nThen git crashes, so I've to remove index.lock manually\n(.git/modules/Foo/index.lock).\n\nThis is what I did before it start doing this:\n1. I've renamed GitHub repository to different name.\n2. Created new repository in place of the old one (which consist other\nsubmodules).\n3. In previously cloned submodule dir (which was pointing to previous\nrepo before rename) I did: git fetch origin\n4. Then I did: git reset origin/master --hard\n5. 'git status' looks ok\n6. Moved some of the files into submodule dir of the current submodule\nand entered that dir.\n7. From now on, the git add crashes with trap 6:  git add .\n\nProbably there are some easier steps to reproduce the issue, but this\nis what I did.\n\nOS: macOS Sierra\ngit version 2.8.4\n\n(lldb) bt\n* thread #1: tid = 0x2338e, 0x00007fffbe6a1dda\nlibsystem_kernel.dylib`__pthread_kill + 10, queue =\n'com.apple.main-thread', stop reason = signal SIGABRT\n  * frame #0: 0x00007fffbe6a1dda libsystem_kernel.dylib`__pthread_kill + 10\n    frame #1: 0x00007fffbe78c797 libsystem_pthread.dylib`pthread_kill + 90\n    frame #2: 0x00007fffbe607440 libsystem_c.dylib`abort + 129\n    frame #3: 0x00007fffbe5ce8b3 libsystem_c.dylib`__assert_rtn + 320\n    frame #4: 0x00000001000d83f9 git`parse_pathspec + 2917\n    frame #5: 0x0000000100002ded git`cmd_add + 991\n    frame #6: 0x0000000100001e64 git`handle_builtin + 357\n    frame #7: 0x0000000100001877 git`main + 288\n\nOther people could reproduce the same thing, also on Mac, see:\nhttp://stackoverflow.com/q/23205961\n\nKind regards,\nkenorb\n"},{"id":"308506","messageId":"CAGZ79kaBsyt3=bYs+vyhKLKmnCKmeWcJC7bpxjpJU0pYF-osBw@mail.gmail.com","threadId":"44793","inReplyTo":"CANmdXCEGTxgj8BuQZkaBQaktOBrGmLETcQJg9xfV27Kn-0aLGA@mail.gmail.com","subject":"Re: Bug: Assertion failed: function prefix_pathspec, file pathspec.c, line 317.","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-12-29T23:45:41Z","receivedAt":"2016-12-29T23:45:47Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Thu, Dec 29, 2016 at 3:37 PM, Rafal W <kenorb@gmail.com> wrote:\n> The following error happens when I'm running \"git add .\" in the submodule dir:\n>\n\nThanks for reporting!\n\nPlease see the patch that I sent out earlier today:\nhttps://public-inbox.org/git/20161229192908.32633-1-sbeller@google.com/\n\nI wonder if the error message is sufficient, i.e. would you liked to have\nmore help reported by git?\n"}]}