fabacab / git-archive-all.sh

A bash shell script wrapper for git-archive that archives a git superproject and its submodules, if it has any.
214 stars 86 forks source link

improved submodule finding. supports git 1.7.8 #7

Closed CD3 closed 11 years ago

CD3 commented 12 years ago

git 1.7.8 changed the way submodules are initialized. instead of simply cloning submodules into subdirectores so that each submodule has it's own .git directory, each submodule's .git directory is placed in the superproject's .git directory and the submodule has a .git file that references its config directory with gitdir. new find function checks for both .git directories and .git files.

also added some verbose output.

fabacab commented 11 years ago

Thanks for doing this. I merged this but then also made a few changes. Specifically, I like my tools to run quietly, so I wrapped your echos in a --verbose option (see 227435a00857dcbf511075c80fbe460b39893cd9), and also find . is more portable than find ./, so this was corrected in 2e9623177dede89fed0e800533c562ee2b2ff907. Again, thanks for your assistance.