Commit Graph

24 Commits

Author SHA1 Message Date
Anders Kaseorg f0e07bcacb .gitattributes: Mark *.bmp, *.bson, *.mp3, *.pdf as binary.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-02-07 18:51:06 -08:00
Greg Price d71702c9fc git: Suppress diffs by default on giant Stripe API fixtures
Before:

$ git log -p -1 88fd399bec | wc
  50015  134879 2016086

After:

$ git log -p -1 88fd399bec | wc
   1554    6624  229028
$ git log -a -p -1 88fd399bec | wc
  50015  134879 2016086

Also add some organization and explanatory comments to this file,
following what we have in zulip-mobile:.gitattributes .
2021-12-06 11:36:49 -08:00
Anders Kaseorg f146a2a5ac Revert "gitattributes: Mark yarn.lock as "binary", i.e. suppress diffs."
This reverts commit a717ac6d85.

.gitattributes affects the behavior of many Git operations like rebase
and merge and mergetool, not just the output of show and diff.
Treating yarn.lock as binary was making it too hard to deal with
yarn.lock diffs when we actually needed them.  Also, the GitHub
website ignores this setting and suppresses large parts of diffs
regardless.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-05-20 19:31:14 -07:00
Tim Abbott 158890cb9b gitattributes: Treat .ogg files as binary. 2018-04-27 09:59:19 -07:00
Greg Price a717ac6d85 gitattributes: Mark yarn.lock as "binary", i.e. suppress diffs.
This makes many diffs that touch our JS dependencies in package.json
much, much more readable by suppressing multi-thousand-line changes.
With that kind of change routine, it's clear this isn't a file people
are closely reviewing the text diffs in anyway.
2018-02-01 13:37:19 -08:00
Tim Abbott 84790f8e21 gitattributes: Set .jpeg files as binary. 2017-10-26 22:25:39 -07:00
Tim Abbott bfaf0fb3b2 build-release-tarball: Stop using .gitattributes.
Unfortunately, GitHub's web UI for generating release tarballs uses
`.gitattributes` to control what files to download, and thus if you
downloaded a source tarball for older Zulip versions using the GitHub
web UI, you'd be missing important files.

We fix this for future releases by moving the blacklist out of
.gitattributes.

Fixes #129.
2017-10-11 21:51:42 -07:00
Brock Whittaker 2a7480051f third: Update version of Source Sans Pro font.
Our previous version was several years old.
2017-08-28 16:08:30 -07:00
Tim Abbott ee935e8990 gitattibutes: Remove paths that don't exist anymore. 2017-08-15 20:44:41 -07:00
Greg Price 2d534e7397 Remove local_settings.py, as it grows stale with disuse.
This file hasn't reflected the actual configuration of any live
installation for some time, nor been part of any tests or other
mechanism to regularly validate it, so it's naturally fallen
behind as we make changes to the set of settings and typically
don't update this file accordingly.  Just remove it; all the
documentation functions it serves are already served just as
well by prod_settings_template.py and its ample comments.
2017-07-31 21:27:32 -07:00
Tim Abbott 70e75508ba settings: Include analytics in default distribution.
This moves the analytics module from being a default-off module that
is somewhat difficult to install to being a default part of the
Zulip distribution (both tarballs and what is enabled by default).
2017-02-02 16:23:24 -08:00
Christie Koehler 906587f474 Force LF line-endings except for binary file types. 2016-10-17 20:19:55 -07:00
Tim Abbott b200c6cdc0 Move assets/ to live under static/.
This decreases the clutter in the root directory of the Zulip
repository.
2016-08-26 10:23:38 -07:00
Umair Khan e56d3196ef Update provisioning/release scripts to build `.mo` files.
We need to update provision.py to compile the messages files, since
they are needed for the new i18n tests.  And of course we need to
include the .mo files in release tarballs; there's a bit of complexity
there around how the tarball archives are created.
2016-05-18 19:30:00 -07:00
Tim Abbott be96cf809d Move Zulip backend tests to zerver.tests. 2016-04-11 22:16:09 -07:00
Tim Abbott f1074aa491 Move frontend tests out of zerver/tests/.
This fixes an unfortunate bug where the backend tests in
zerver/tests.py were not being run automatically, and also makes these
a bit easier to find.
2015-10-28 10:11:47 -07:00
Zev Benjamin b0d1d774e3 enterprise: Don't include templates/zilencer in our tarballs
(imported from commit 945a2bd73f1968f06307539bae1c91f977fa0353)
2013-11-15 11:53:49 -05:00
Tim Abbott 09b4a2a180 Exclude some additional directories from enterprise tarballs.
(imported from commit 983f1095e9a247d139a0ba690992f78cc21e4d4c)
2013-11-12 23:21:53 -05:00
Tim Abbott 5f655088ef Fix ~/.gitattributes syntax.
For git that's not between version 1.8.1.1 and 1.8.1.6, the previous
version did not actually exclude those things from the tarballs on
some git versions, due to changes in the syntax for that file that
were made in 1.8.1.1 and reverted in 1.8.1.6.

Kevin's also adding a check that we're not including any of the files
intended to be excluded here.

(imported from commit 503ec24ed8db4cc32c29bdf5a361e5013a02b995)
2013-11-12 19:34:30 -05:00
Kevin Mehall d0b81f6b2e build-local-server-tarball: Add prod-static to a clean git archive tarball
This avoids exporting .pyc files and any other junk left behind by the
build process.

(imported from commit 8bdb9de3867b10eb5be9f52b784aa906c5f19d23)
2013-11-12 15:50:07 -05:00
Kevin Mehall 78b45b61fb Minify JS in the localserver upgrade tarball.
This moves the list of removed files from .gitattributes to
tools/build-local-server-tarball because static/ and tools/ are
necessary for update-prod-static, and it seemed best to keep the
entire list in one place.

(imported from commit 2a447cbde29e90d776da43bb333650a40d4d363c)
2013-11-04 13:40:43 -05:00
Tim Abbott c828057986 Don't ship puppet/zulip-internal to local server instances.
(imported from commit 33cd03546d1a0958213b76943ee8a221e58dfb29)
2013-11-04 13:22:41 -05:00
Tim Abbott 537dc49c86 Move servers/network-hardware-passwords under tools/secrets/.
Arguably this shouldn't live in git at all, but given that it does, we
can at least move it to saner location.

(imported from commit 72aad4c68e15a06bb2dffe54539999b1a8f8f66d)
2013-10-30 20:39:39 -04:00
Tim Abbott 5b33c44f64 Add tool to build local server tarballs.
We need to maintain this by labeling the files that we don't want to
ship with our local server tarballs in the .gitattributes file.

(imported from commit e29f38c477a4cdfd80fbb8e4e95c611b34f3b212)
2013-10-29 17:55:07 -04:00