You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
@say25 thanks for the report. It looks like the app isn't able to resolve the submodules listed in the repository, because git-submodule is generating a segmentation fault.
2018-05-03T05:41:28.688Z - error: [ui] `git submodule status --` exited with an unexpected code: 139.
fe965f16f6f690d40a738e75a46fad3f41f5daa3 app/static/common/choosealicense.com (fe965f1)
690a433b668348c33087d34fafe2155ebe8bb4cf app/static/common/gitignore (remotes/origin/reduce-noise-1009-g690a433)
/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core/git-submodule: line 979: 12490 Segmentation fault: 11 git ${wt_prefix:+-C "$wt_prefix"} ${prefix:+--super-prefix "$prefix"} submodule--helper status ${GIT_QUIET:+--quiet} ${cached:+--cached} ${recursive:+--recursive} "$@"
We last updated dugite in 1.1.2-beta2 but I tested the same steps provided in the same build and was able to successfully discard. git-submodule is just a loose script that hasn't changed since January, so I'm puzzled why it's now failing on your setup.
➜ desktop git:(master) git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: gemoji (untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
➜ desktop git:(master)
Git diff:
/Users/tierninho/bin/gitdiffwrapper.sh: line 2: kdiff3: command not found
fatal: external diff died, stopping at gemoji
(END)
And if trying to discard as part of a group of changes, this showed up:
This also consistently fails for me (discarding submodule changes has no effect and doesn't raise an error). I'm running GitHub Desktop 1.6.5 on macOS 10.12.6.
should be handling this case, but clearly isn't. maybe there's a step we're missing in the discard submodules steps? or we're not properly handling an error? the trick is debugging this code to see where we're missing something.
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Activity
shiftkey commentedon May 3, 2018
@say25 thanks for the report. It looks like the app isn't able to resolve the submodules listed in the repository, because
git-submoduleis generating a segmentation fault.We last updated
dugitein1.1.2-beta2but I tested the same steps provided in the same build and was able to successfully discard.git-submoduleis just a loose script that hasn't changed since January, so I'm puzzled why it's now failing on your setup.shiftkey commentedon May 24, 2018
@say25 I'm still puzzled about how this might be failing. Has it been consistent to reproduce? Any clues about your setup?
say25 commentedon May 25, 2018
Tried it on the latest beta, here is my the log from the work flow. I can consistently reproduce it.
Steps to Reproduce:
the Gemoji submodule or the discard all.
Notice it fails to discard or move anything to the trash.
tierninho commentedon Sep 20, 2018
This is reproducible for me. Here are my logs:
When trying to commit the change instead, I get:

Git status:
Git diff:
And if trying to discard as part of a group of changes, this showed up:

1.4.1-beta0, mac
varkor commentedon Mar 26, 2019
This also consistently fails for me (discarding submodule changes has no effect and doesn't raise an error). I'm running GitHub Desktop 1.6.5 on macOS 10.12.6.
tierninho commentedon Jun 28, 2019
Ran into this again on 2.1.0-beta3: A submodule in the Changes list cannot be discarded.
When selecting
discard allfor the file/folder, the dialogue just hangs forever and I have to force close the app to resolve. Not ideal.On Windows only. No Logs.
outofambit commentedon Aug 21, 2019
Proposed approach:
desktop/app/src/lib/stores/git-store.ts
Lines 1272 to 1352 in 72918a8
it looks like
desktop/app/src/lib/git/submodule.ts
Lines 79 to 90 in 72918a8
should be handling this case, but clearly isn't. maybe there's a step we're missing in the discard submodules steps? or we're not properly handling an error? the trick is debugging this code to see where we're missing something.
also, there are some helpful notes about how discard changes works in desktop at https://github.com/desktop/desktop/blob/development/docs/technical/discard-changes.md