Kentzo / git-archive-all

A python script wrapper for git-archive that archives a git superproject and its submodules, if it has any. Takes into account .gitattributes
MIT License
372 stars 81 forks source link

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

Open ghost opened 4 years ago

ghost commented 4 years ago

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

Kentzo commented 4 years ago

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
ghost commented 4 years ago

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