Skip to content

Commit ae8c018

Browse files
committed
Fix URLs that were redirecting to another license
All the opensource.org BSD license URLs at the top of source code files in this project had originally pointed to a page on the 3-clause BSD license that this project used and continues to use. But over time the site was apparently reorganized and the link became a redirect to the page about the 2-clause BSD license. Because it is identified only as the "BSD license" in the comments in this project that contain the links, this unfortunately makes it so those top-of-file comments all wrongly claim that the project is 2-clause BSD licensed. This fixes the links by replacing them with the current URL of the opensource.org page on the 3-clause BSD license. The current URL contains "bsd-3-clause" in it, so this specific problem is unlikely to recur with that URL (and even if it did, the text "bsd-3-clause is information that may clue readers in to what is going on).
1 parent e8c3085 commit ae8c018

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+43
-44
lines changed

git/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
# flake8: noqa
77
# @PydevCodeAnalysisIgnore
88
from git.exc import * # @NoMove @IgnorePep8

git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
from __future__ import annotations
77
import re
88
import contextlib

git/compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
"""utilities to help provide compatibility with python 3"""
88
# flake8: noqa
99

git/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
"""Module containing module parser implementation able to properly read and write
77
configuration files"""
88

git/diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
import re
88
from git.cmd import handle_process_output

git/exc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
""" Module containing all exceptions thrown throughout the git package, """
77

88
from gitdb.exc import BadName # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614

git/index/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from contextlib import ExitStack
88
import datetime

git/objects/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from git.exc import WorkTreeRepositoryUnsupported
88
from git.util import LazyMixin, join_path_native, stream_copy, bin_to_hex

git/objects/blob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
from mimetypes import guess_type
77
from . import base
88

git/objects/commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
import datetime
77
import re
88
from subprocess import Popen, PIPE

git/objects/tag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
""" Module containing all object based types. """
77
from . import base
88
from .util import get_object_type_by_name, parse_actor_and_date

git/objects/tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from git.util import IterableList, join_path
88
import git.diff as git_diff

git/objects/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
"""Module for general utility functions"""
77
# flake8: noqa F401
88

git/remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
# Module implementing a remote object allowing easy access to git remotes
88
import logging

git/repo/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
from __future__ import annotations
77
import logging
88
import os

git/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# This module is part of GitPython and is released under
3-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
3+
# the BSD License: https://opensource.org/license/bsd-3-clause/
44
# flake8: noqa
55

66
import os

git/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from abc import abstractmethod
88
import os.path as osp

test/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/

test/lib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
# flake8: noqa
88
import inspect

test/lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
import contextlib
77
from functools import wraps
88
import gc

test/performance/test_commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
from io import BytesIO
77
from time import time
88
import sys

test/test_actor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from test.lib import TestBase
88
from git import Actor

test/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import os
88
import sys
99
import tempfile

test/test_blob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from test.lib import TestBase
88
from git import Blob

test/test_clone.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# This module is part of GitPython and is released under
3-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
3+
# the BSD License: https://opensource.org/license/bsd-3-clause/
44

55
from pathlib import Path
66
import re

test/test_commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import copy
88
from datetime import datetime
99
from io import BytesIO

test/test_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
import glob
88
import io

test/test_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66
from git.db import GitCmdObjectDB
77
from git.exc import BadObject
88
from test.lib import TestBase

test/test_diff.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import ddt
88
import shutil
99
import tempfile
@@ -414,7 +414,7 @@ def test_diff_interface(self):
414414

415415
@with_rw_directory
416416
def test_rename_override(self, rw_dir):
417-
"""Test disabling of diff rename detection"""
417+
"""Test disabling of diff rename detection"""
418418

419419
# create and commit file_a.txt
420420
repo = Repo.init(rw_dir)
@@ -480,4 +480,3 @@ def test_rename_override(self, rw_dir):
480480
self.assertEqual(True, diff.renamed_file)
481481
self.assertEqual('file_a.txt', diff.rename_from)
482482
self.assertEqual('file_b.txt', diff.rename_to)
483-

test/test_docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import os
88
import sys
99

test/test_exc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009, 2016 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77

88

99
import re

test/test_git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import os
88
import shutil
99
import subprocess

test/test_index.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77

88
from io import BytesIO
99
import os
@@ -953,4 +953,4 @@ def test_index_add_pathlike(self, rw_repo):
953953
file = git_dir / "file.txt"
954954
file.touch()
955955

956-
rw_repo.index.add(file)
956+
rw_repo.index.add(file)

test/test_installation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This module is part of GitPython and is released under
2-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
2+
# the BSD License: https://opensource.org/license/bsd-3-clause/
33

44
import ast
55
import os

test/test_refs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from itertools import chain
88
from pathlib import Path

test/test_remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
import random
88
import tempfile

test/test_repo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
44
#
55
# This module is part of GitPython and is released under
6-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
# the BSD License: https://opensource.org/license/bsd-3-clause/
77
import glob
88
import io
99
from io import BytesIO

test/test_stats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from test.lib import TestBase, fixture
88
from git import Stats

test/test_submodule.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# This module is part of GitPython and is released under
3-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
3+
# the BSD License: https://opensource.org/license/bsd-3-clause/
44
import contextlib
55
import os
66
import shutil

test/test_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
from io import BytesIO
88
from unittest import skipIf

test/test_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
5-
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
5+
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
import os
88
import pickle

0 commit comments

Comments
 (0)