mirror of https://github.com/zulip/zulip.git
Check for excluded files in tarball in case .gitattributes doesn't work
Because git < 1.8.1 ignores lines with trailing slashes and 1.8.1.1 - 1.8.1.6 ignore lines without! (imported from commit 8139a742f4a52ccb1bce4e06fb24c9626fdb01f2)
This commit is contained in:
parent
b6751d2119
commit
e375f11a78
|
@ -23,6 +23,15 @@ TARBALL=$TMPDIR/$prefix.tar
|
|||
# .gitattributes lists the files that are not exported
|
||||
git archive -o $TARBALL --prefix=$prefix/ HEAD
|
||||
|
||||
|
||||
if tar -tf $TARBALL | grep -q -e zilencer -e zproject/local_settings.py -e puppet/zulip_internal; then
|
||||
echo "Excluded files remain in tarball!";
|
||||
echo "Versions of git 1.8.1.1 - 1.8.1.6 have broken .gitattributes syntax";
|
||||
exit 1;
|
||||
else
|
||||
echo "Check for excluded files passed";
|
||||
fi
|
||||
|
||||
# Check out a temporary full copy of the index to generate static files
|
||||
git checkout-index -f -a --prefix $TMP_CHECKOUT
|
||||
cd $TMP_CHECKOUT
|
||||
|
|
Loading…
Reference in New Issue