From f43e90b148597ed269be79563f876542e689b9bd Mon Sep 17 00:00:00 2001 From: Peter David McCormick Date: Mon, 17 Apr 2023 17:48:16 -0400 Subject: [PATCH] Provide directions for cloning repository despite malformed commits #1660 --- README | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README b/README index 2954eebe74..e3f7cc6c83 100644 --- a/README +++ b/README @@ -45,6 +45,25 @@ and then to verify the release: $ git tag -v 0.9.6 +## Cloning the repository + +When cloning the OLA repository, you may need to add the `-c +fetch.fsck.missingSpaceBeforeDate=ignore` flag to avoid an error about a bad commit (see +[this issue](https://github.com/OpenLightingProject/ola/issues/1660) for more background): + +```shell +git clone -c fetch.fsck.missingSpaceBeforeDate=ignore https://github.com/OpenLightingProject/ola.git + +# Or: +git clone -c fetch.fsck.missingSpaceBeforeDate=ignore git@github.com:OpenLightingProject/ola.git +``` + +You can also make this the default behaviour by modifying your global Git config: + +```shell +git config --global fetch.fsck.missingSpaceBeforeDate ignore +``` + ## Support Support for OLA is provided via the mailing list and IRC channel. The