From 2b0a9693ea98ab7ff025a8ab1235b6f8ea0da676 Mon Sep 17 00:00:00 2001 From: David Lakin Date: Mon, 22 Apr 2024 16:36:17 -0400 Subject: [PATCH 1/2] Add GitPython's standard license header comments to oss-fuzz scripts These files are already BSD-3-Clause even without the headers, but adding these comments and the `LICENSE-BSD` symlink to the root level `LICENSE` file are helpful to reinforce that there are only two particular files in the `fuzzing/` that are not under BSD-3-Clause. See: https://github.com/gitpython-developers/GitPython/pull/1901#discussion_r1567849271 --- fuzzing/LICENSE-BSD | 1 + fuzzing/oss-fuzz-scripts/build.sh | 3 +++ fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh | 4 ++++ 3 files changed, 8 insertions(+) create mode 120000 fuzzing/LICENSE-BSD diff --git a/fuzzing/LICENSE-BSD b/fuzzing/LICENSE-BSD new file mode 120000 index 000000000..ea5b60640 --- /dev/null +++ b/fuzzing/LICENSE-BSD @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/fuzzing/oss-fuzz-scripts/build.sh b/fuzzing/oss-fuzz-scripts/build.sh index ab46ec7a2..a79cbe895 100644 --- a/fuzzing/oss-fuzz-scripts/build.sh +++ b/fuzzing/oss-fuzz-scripts/build.sh @@ -1,4 +1,7 @@ # shellcheck shell=bash +# +# This file is part of GitPython and is released under the +# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ set -euo pipefail diff --git a/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh b/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh index 662808e27..76ec97c7f 100755 --- a/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh +++ b/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# +# This file is part of GitPython and is released under the +# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ + set -euo pipefail ################# From b021a76354bb2779fc8f43c647a3a85b67f3d01a Mon Sep 17 00:00:00 2001 From: David Lakin Date: Mon, 22 Apr 2024 16:43:03 -0400 Subject: [PATCH 2/2] Add GitPython's standard license header comments to top level scripts While discussing adding similar license comments to the shell scripts introduced in PR #1901, it was noticed that the shell scripts in the repository root directory did not have such comments and suggested that we could add them when the scripts in the `fuzzing/` directory were updated, so this commit does just that. See: https://github.com/gitpython-developers/GitPython/pull/1901#discussion_r1567849271 --- build-release.sh | 3 +++ check-version.sh | 3 +++ init-tests-after-clone.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/build-release.sh b/build-release.sh index 49c13b93a..1a8dce2c2 100755 --- a/build-release.sh +++ b/build-release.sh @@ -1,5 +1,8 @@ #!/bin/bash # +# This file is part of GitPython and is released under the +# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ +# # This script builds a release. If run in a venv, it auto-installs its tools. # You may want to run "make release" instead of running this script directly. diff --git a/check-version.sh b/check-version.sh index dac386e46..579cf789f 100755 --- a/check-version.sh +++ b/check-version.sh @@ -1,5 +1,8 @@ #!/bin/bash # +# This file is part of GitPython and is released under the +# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ +# # This script checks if we are in a consistent state to build a new release. # See the release instructions in README.md for the steps to make this pass. # You may want to run "make release" instead of running this script directly. diff --git a/init-tests-after-clone.sh b/init-tests-after-clone.sh index 118e1de22..bfada01b0 100755 --- a/init-tests-after-clone.sh +++ b/init-tests-after-clone.sh @@ -1,4 +1,7 @@ #!/bin/sh +# +# This file is part of GitPython and is released under the +# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ set -eu