Skip to content

Fix URLs that were redirecting to another license #1662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion git/__init__.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
# flake8: noqa
# @PydevCodeAnalysisIgnore
from git.exc import * # @NoMove @IgnorePep8
2 changes: 1 addition & 1 deletion git/cmd.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
from __future__ import annotations
import re
import contextlib
2 changes: 1 addition & 1 deletion git/compat.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
"""utilities to help provide compatibility with python 3"""
# flake8: noqa

2 changes: 1 addition & 1 deletion git/config.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
"""Module containing module parser implementation able to properly read and write
configuration files"""

2 changes: 1 addition & 1 deletion git/diff.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

import re
from git.cmd import handle_process_output
2 changes: 1 addition & 1 deletion git/exc.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
""" Module containing all exceptions thrown throughout the git package, """

from gitdb.exc import BadName # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614
2 changes: 1 addition & 1 deletion git/index/base.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from contextlib import ExitStack
import datetime
2 changes: 1 addition & 1 deletion git/objects/base.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from git.exc import WorkTreeRepositoryUnsupported
from git.util import LazyMixin, join_path_native, stream_copy, bin_to_hex
2 changes: 1 addition & 1 deletion git/objects/blob.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
from mimetypes import guess_type
from . import base

2 changes: 1 addition & 1 deletion git/objects/commit.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import datetime
import re
from subprocess import Popen, PIPE
2 changes: 1 addition & 1 deletion git/objects/tag.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
""" Module containing all object based types. """
from . import base
from .util import get_object_type_by_name, parse_actor_and_date
2 changes: 1 addition & 1 deletion git/objects/tree.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from git.util import IterableList, join_path
import git.diff as git_diff
2 changes: 1 addition & 1 deletion git/objects/util.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
"""Module for general utility functions"""
# flake8: noqa F401

2 changes: 1 addition & 1 deletion git/remote.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

# Module implementing a remote object allowing easy access to git remotes
import logging
2 changes: 1 addition & 1 deletion git/repo/base.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
from __future__ import annotations
import logging
import os
2 changes: 1 addition & 1 deletion git/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
# flake8: noqa

import os
2 changes: 1 addition & 1 deletion git/util.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from abc import abstractmethod
import os.path as osp
2 changes: 1 addition & 1 deletion test/__init__.py
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
2 changes: 1 addition & 1 deletion test/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

# flake8: noqa
import inspect
2 changes: 1 addition & 1 deletion test/lib/helper.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import contextlib
from functools import wraps
import gc
2 changes: 1 addition & 1 deletion test/performance/test_commit.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
from io import BytesIO
from time import time
import sys
2 changes: 1 addition & 1 deletion test/test_actor.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from test.lib import TestBase
from git import Actor
2 changes: 1 addition & 1 deletion test/test_base.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import os
import sys
import tempfile
2 changes: 1 addition & 1 deletion test/test_blob.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from test.lib import TestBase
from git import Blob
2 changes: 1 addition & 1 deletion test/test_clone.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from pathlib import Path
import re
2 changes: 1 addition & 1 deletion test/test_commit.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import copy
from datetime import datetime
from io import BytesIO
2 changes: 1 addition & 1 deletion test/test_config.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

import glob
import io
2 changes: 1 addition & 1 deletion test/test_db.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
from git.db import GitCmdObjectDB
from git.exc import BadObject
from test.lib import TestBase
5 changes: 2 additions & 3 deletions test/test_diff.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import ddt
import shutil
import tempfile
@@ -414,7 +414,7 @@ def test_diff_interface(self):

@with_rw_directory
def test_rename_override(self, rw_dir):
"""Test disabling of diff rename detection"""
"""Test disabling of diff rename detection"""

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

2 changes: 1 addition & 1 deletion test/test_docs.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import os
import sys

2 changes: 1 addition & 1 deletion test/test_exc.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009, 2016 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/


import re
2 changes: 1 addition & 1 deletion test/test_git.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import os
import shutil
import subprocess
4 changes: 2 additions & 2 deletions test/test_index.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

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

rw_repo.index.add(file)
rw_repo.index.add(file)
2 changes: 1 addition & 1 deletion test/test_installation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

import ast
import os
2 changes: 1 addition & 1 deletion test/test_refs.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from itertools import chain
from pathlib import Path
2 changes: 1 addition & 1 deletion test/test_remote.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

import random
import tempfile
2 changes: 1 addition & 1 deletion test/test_repo.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import glob
import io
from io import BytesIO
2 changes: 1 addition & 1 deletion test/test_stats.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from test.lib import TestBase, fixture
from git import Stats
2 changes: 1 addition & 1 deletion test/test_submodule.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/
import contextlib
import os
import shutil
2 changes: 1 addition & 1 deletion test/test_tree.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

from io import BytesIO
from unittest import skipIf
2 changes: 1 addition & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# the BSD License: https://opensource.org/license/bsd-3-clause/

import os
import pickle