Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
fix tarball creation script - we don't need submodules anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsmichi committed Oct 11, 2012
1 parent 8c07d46 commit b48f007
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions make-tarball
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ while test $# -gt 0; do
version
exit
;;
--tag )
shift
TREEISH="$1"
shift
;;

-? | --usage | --help )
usage
Expand Down Expand Up @@ -149,8 +144,8 @@ git archive --format=$FORMAT --prefix="$PREFIX" $TREEISH > $TMPDIR/$(basename $(
echo $TMPDIR/$(basename $(pwd)).$FORMAT >| $TMPFILE # clobber on purpose
superfile=`head -n 1 $TMPFILE`

# find all '.git' dirs, these show us the remaining to-be-archived dirs
find . -name '.git' -type d -print | sed -e 's/^\.\///' -e 's/\.git$//' | grep -v '^$' >> $TOARCHIVE
# DEACTIVATED: We do not have any exportable sub repositories
# find . -name '.git' -type d -print | sed -e 's/^\.\///' -e 's/\.git$//' | grep -v '^$' >> $TOARCHIVE

while read path; do
TREEISH=$(git submodule | grep "^ .*${path%/}" | cut -d ' ' -f 2) # git-submodule does not list trailing slashes in $path
Expand Down

0 comments on commit b48f007

Please sign in to comment.