File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,17 @@ if [ $VERBOSE -eq 1 ]; then
271
271
fi
272
272
# Concatenate archives into a super-archive.
273
273
if [ $SEPARATE -eq 0 -o " -" == " $OUT_FILE " ]; then
274
- if [ $FORMAT == ' tar.gz' ]; then
274
+ cmd=$( git config --get " tar.$FORMAT .command" )
275
+ if [ -n " $cmd " -a " $FORMAT " != " tar" ]; then
276
+ superfile_=${superfile% .$FORMAT } .tar
277
+ $cmd -d < " $superfile " > " $superfile_ " && rm -f " $superfile "
278
+ sed -e ' 1d' $TMPFILE | while read file; do
279
+ file_=${file% .$FORMAT } .tar
280
+ $cmd -d < " $file " > " $file_ " && rm -f " $file "
281
+ $TARCMD --concatenate -f " $superfile_ " " $file_ " && rm -f " $file_ "
282
+ done
283
+ $cmd < " $superfile_ " > " $superfile " && rm -f " $superfile_ "
284
+ elif [ $FORMAT == ' tar.gz' ]; then
275
285
gunzip $superfile
276
286
superfile=${superfile: 0: -3} # Remove '.gz'
277
287
sed -e ' 1d' $TMPFILE | while read file; do
You can’t perform that action at this time.
0 commit comments