File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 249
249
if [ $VERBOSE -eq 1 ]; then
250
250
echo -n " archiving submodules..."
251
251
fi
252
- git submodule >> " $TMPLIST "
252
+ git submodule status --recursive --cached >> " $TMPLIST "
253
253
while read path; do
254
- TREEISH=$( grep " ^ .* $ {path%/ } " " $TMPLIST " | cut -d ' ' -f 2 ) # git submodule does not list trailing slashes in $path
254
+ TREEISH=$( sed -nr -e ' s@^[ +-]@@ ' -e ' s@ +\(.*\)$@@ ' -e ' s@([^ ]+) + ' " $ {path%/ }" ' $@\1@ p ' " $TMPLIST " ) # git submodule does not list trailing slashes in $path
255
255
cd " $path "
256
256
rm -f " $TMPDIR " /" $( echo " $path " | sed -e ' s/\//./g' ) " $FORMAT
257
257
git archive --format=$FORMAT --prefix=" ${PREFIX} $path " $ARCHIVE_OPTS ${TREEISH:- HEAD} > " $TMPDIR " /" $( echo " $path " | sed -e ' s/\//./g' ) " $FORMAT
You can’t perform that action at this time.
0 commit comments