git-archive-all icon indicating copy to clipboard operation
git-archive-all copied to clipboard

The script dies silently if module is in .gitmodules but not in .git/config

Open ghost opened this issue 6 years ago • 2 comments

It happened that I removed a submodule from .git/config but not from .gitmodules. Now if I run the script, it finishes successfully but doesn't include submodules coming after the missing submodule. No error message is produced.

image

git-archive-all from brew on Mac

ghost avatar Nov 21 '19 10:11 ghost

Ok, so what case are you hitting:

  1. The script exits without printing an error or warning with non-0
  2. The script prints the exception then exits with 0 with all the files - submodule files being archived
  3. The script prints the exception then exits with 0 with only some of the files being archived (i.e. it stopped walking the repo as soon as it hit the exception

Kentzo avatar Nov 21 '19 17:11 Kentzo

@Kentzo Exits successfully (exit code 0) with no exception or error message. Submodules not included into the resulting archive.

ghost avatar Nov 22 '19 07:11 ghost