From f7ad281170b0ca347fc9551c540b175f294fc5b3 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sun, 27 Dec 2020 08:57:40 +0100 Subject: [PATCH] Contributing shell code in backtick Currently, on https://github.com/ankitects/anki/blob/ebc77985d87979ec05994f8fa5fb75c5e4283057/docs/contributing.md the whole code is on a single line. Copying does not work, as the test is commented --- docs/contributing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/contributing.md b/docs/contributing.md index 41e0d9982..f1210df89 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -121,8 +121,10 @@ Please make sure 'bazel test //...' completes successfully before submitting cod You can do this automatically by adding the following into .git/hooks/pre-commit or .git/hooks/pre-push and making it executable. +```sh #!/bin/bash bazel test //... +``` If your change is non-trivial and not covered by the existing unit tests, please consider adding a unit test at the same time.