mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
@@ -23,6 +23,15 @@ TARBALL=$TMPDIR/$prefix.tar
|
|||||||
# .gitattributes lists the files that are not exported
|
# .gitattributes lists the files that are not exported
|
||||||
git archive -o $TARBALL --prefix=$prefix/ HEAD
|
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
|
# Check out a temporary full copy of the index to generate static files
|
||||||
git checkout-index -f -a --prefix $TMP_CHECKOUT
|
git checkout-index -f -a --prefix $TMP_CHECKOUT
|
||||||
cd $TMP_CHECKOUT
|
cd $TMP_CHECKOUT
|
||||||
|
|||||||
Reference in New Issue
Block a user