GitPython is a python library used to interact with Git repositories.
This report summarizes scanner evidence for gitpython-developers/GitPython, a Python project with 5,184 GitHub stars. SynthScan examined 50,957 lines of code across 178 source files, recording 1328 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 38.3 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 863 finding(s).
Are imports declared and package/API names verified? 284 finding(s).
Are wrappers, guards, and repeated structures necessary? 739 finding(s).
Which changes need focused human review? 1328 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1328 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fuzzing/fuzz-targets/utils.py | 10 | def is_expected_exception_message(exception: Exception, error_message_list: List[str]) -> bool: # pragma: no cover | CODE |
| LOW⚡ | fuzzing/fuzz-targets/utils.py | 78 | def match_exception_with_traceback(exception_list: Set[Tuple[str, str]], exc_traceback) -> bool: | CODE |
| LOW | fuzzing/fuzz-targets/utils.py | 89 | def check_exception_against_list(exc_traceback, exception_file: str = "explicit-exceptions-list.txt") -> bool: | CODE |
| LOW⚡ | test/test_positional_args.py | 16 | def test_pull_rejects_option_shaped_refspec(tmp_path, refspec, allow_unsafe_options): | CODE |
| LOW⚡ | test/test_positional_args.py | 25 | def test_pull_rejects_option_shaped_remote(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 34 | def test_pull_preserves_operand_and_explicit_option_values(tmp_path): | CODE |
| LOW | test/test_positional_args.py | 45 | def test_delete_head_cannot_override_force(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 58 | def test_rename_head_cannot_select_current_branch(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 68 | def test_tag_operands_follow_option_terminator(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 77 | def test_remote_ref_delete_preserves_operand(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 85 | def test_move_treats_option_shaped_source_as_filename(tmp_path): | CODE |
| LOW⚡ | test/test_positional_args.py | 94 | def test_move_cannot_override_overwrite_protection(tmp_path): | CODE |
| LOW | test/test_positional_args.py | 107 | def test_ignored_treats_option_shaped_path_as_filename(tmp_path): | CODE |
| LOW | test/test_positional_args.py | 113 | def test_move_cannot_override_dry_run(tmp_path): | CODE |
| LOW | test/test_positional_args.py | 124 | def test_remote_update_rejects_option_shaped_name(tmp_path, name): | CODE |
| LOW | test/test_tree.py | 55 | def test_valid_unusual_tree_names_round_trip(self): | CODE |
| LOW | test/test_tree.py | 98 | def test_tree_modifier_ordering(self): | CODE |
| LOW | test/test_tree.py | 133 | def test_tree_names_are_checked_at_construction_and_serialization(self, name): | CODE |
| LOW | test/test_tree.py | 173 | def test_gitmodules_symlink_entries_are_rejected(self, name): | CODE |
| LOW | test/test_tree.py | 236 | def test_gitmodules_short_name_near_misses_round_trip(self, name): | CODE |
| LOW⚡ | test/test_tree.py | 304 | def test_repo_lookup_string_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 311 | def test_repo_lookup_pathlike_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 318 | def test_repo_lookup_invalid_string_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 324 | def test_repo_lookup_invalid_pathlike_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 330 | def test_repo_lookup_nested_string_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 337 | def test_repo_lookup_nested_pathlike_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 344 | def test_repo_lookup_folder_string_path(self, rw_repo): | CODE |
| LOW⚡ | test/test_tree.py | 351 | def test_repo_lookup_folder_pathlike_path(self, rw_repo): | CODE |
| LOW | test/test_rev_parse.py | 62 | def test_rev_parse_names_hex_and_describe_forms(rev_parse_repo): | CODE |
| LOW | test/test_rev_parse.py | 80 | def test_rev_parse_navigation_and_peeling(rev_parse_repo): | CODE |
| LOW | test/test_rev_parse.py | 105 | def test_rev_parse_tree_and_index_paths(rev_parse_repo): | CODE |
| LOW | test/test_rev_parse.py | 116 | def test_rev_parse_reflog_selectors(rev_parse_repo): | CODE |
| LOW | test/test_rev_parse.py | 134 | def test_rev_parse_commit_message_search(rev_parse_repo): | CODE |
| LOW⚡ | test/test_rev_parse.py | 156 | def test_rev_parse_commit_message_search_matches_git(rev_parse_repo, revision): | CODE |
| LOW⚡ | test/test_rev_parse.py | 163 | def test_commit_and_tree_message_search(rev_parse_repo, revision): | CODE |
| LOW⚡ | test/test_rev_parse.py | 170 | def test_rev_parse_commit_message_literal_bang_and_option(rev_parse_repo): | CODE |
| LOW⚡ | test/test_rev_parse.py | 179 | def test_rev_parse_commit_message_escaped_braces(rev_parse_repo): | CODE |
| LOW⚡ | test/test_rev_parse.py | 186 | def test_revision_message_search_does_not_backtrack_in_python(tmp_path): | CODE |
| LOW | test/test_rev_parse.py | 220 | def test_revision_message_search_does_not_deserialize_history(tmp_path, monkeypatch): | CODE |
| LOW | test/test_rev_parse.py | 233 | def test_commit_and_tree_resolve_before_peeling(rev_parse_repo): | CODE |
| LOW | test/test_rev_parse.py | 247 | def test_rev_parse_rejects_invalid_object_specs(rev_parse_repo): | CODE |
| LOW⚡ | test/test_submodule.py | 281 | def test_windows_destination_validation_precedes_normalization(tmp_path, path): | CODE |
| LOW⚡ | test/test_submodule.py | 290 | def test_submodule_can_relocate_its_own_metadata(movable_submodule): | CODE |
| LOW⚡ | test/test_submodule.py | 298 | def test_clone_disables_metadata_that_becomes_nested(movable_submodule, monkeypatch): | CODE |
| LOW⚡ | test/test_submodule.py | 303 | def clone_and_create_ancestor(*args, **kwargs): | CODE |
| LOW⚡ | test/test_submodule.py | 1376 | def test_iter_items_from_nonexistent_hash(self): | CODE |
| LOW⚡ | test/test_submodule.py | 1381 | def test_iter_items_from_invalid_hash(self): | CODE |
| LOW⚡ | test/test_submodule.py | 1389 | def test_deinit_calls_git_submodule(self, rwdir): | CODE |
| LOW | test/test_submodule.py | 58 | def test_submodule_update_preserves_literal_name(tmp_path, monkeypatch, caplog, name): | CODE |
| LOW | test/test_submodule.py | 136 | def test_submodule_rejects_unsafe_checkout_before_mutation(movable_submodule, tmp_path, path, operation): | CODE |
| LOW | test/test_submodule.py | 161 | def test_add_rejects_metadata_checkout_without_writing_files(movable_submodule): | CODE |
| LOW | test/test_submodule.py | 174 | def test_submodule_rejects_checkout_in_separate_metadata( | CODE |
| LOW | test/test_submodule.py | 200 | def test_submodule_rejects_nested_metadata_before_mutation(movable_submodule, operation): | CODE |
| LOW | test/test_submodule.py | 224 | def test_update_rejects_existing_nested_metadata(movable_submodule, state): | CODE |
| LOW | test/test_submodule.py | 266 | def test_submodule_rejects_windows_destination_names_before_mutation(movable_submodule, path): | CODE |
| LOW | test/test_submodule.py | 319 | def test_move_rejects_intermediate_symlink( | CODE |
| LOW | test/test_submodule.py | 357 | def test_move_normal_destination(movable_submodule, absolute_path): | CODE |
| LOW | test/test_submodule.py | 373 | def test_move_rejects_leaf_symlink_to_metadata(movable_submodule, tmp_path, metadata_dir): | CODE |
| LOW | test/test_submodule.py | 395 | def test_move_leaf_symlink_compatibility(movable_submodule, tmp_path, kind): | CODE |
| LOW | test/test_submodule.py | 438 | def test_clone_rejects_checkout_symlinks(movable_submodule, tmp_path, leaf, dangling, operation, gitfile): | CODE |
| 491 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | check-version.sh | 3 | # This file is part of GitPython and is released under the | COMMENT |
| MEDIUM | init-tests-after-clone.sh | 3 | # This file is part of GitPython and is released under the | COMMENT |
| MEDIUM | build-release.sh | 3 | # This file is part of GitPython and is released under the | COMMENT |
| MEDIUM | fuzzing/oss-fuzz-scripts/build.sh | 3 | # This file is part of GitPython and is released under the | COMMENT |
| MEDIUM | …ng/oss-fuzz-scripts/container-environment-bootstrap.sh | 3 | # This file is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_stats.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_tree.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_rev_parse.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_submodule.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_db.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_actor.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_blob_filter.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_typing.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_docs.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM⚡ | test/test_docs.py | 86 | # Create a new head/branch. | COMMENT |
| MEDIUM⚡ | test/test_docs.py | 89 | new_branch = cloned_repo.create_head("feature") # Create a new branch ... | CODE |
| MEDIUM⚡ | test/test_docs.py | 97 | # Create a new tag reference. | COMMENT |
| MEDIUM | test/test_docs.py | 148 | # Create a local branch at one of the remote's branches. | COMMENT |
| MEDIUM | test/test_docs.py | 186 | # Create a new submodule and check it out on the spot, set up to track the | COMMENT |
| MEDIUM | test/test_docs.py | 245 | new_branch = repo.create_head("new") # Create a new one. | CODE |
| MEDIUM | test/test_docs.py | 473 | git_cmd.checkout("HEAD", b="my_new_branch") # Create a new branch. | CODE |
| MEDIUM | test/test_imports.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_git.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_git.py | 457 | # Create a shell script that doesn't do anything. | COMMENT |
| MEDIUM | test/test_git.py | 497 | # Create the child process that inherits the environment variable. The child | COMMENT |
| MEDIUM | test/test_submodule_no_fetch.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_fun.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/__init__.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_clone.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_util.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_diff.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_diff.py | 605 | # Create a file beginning by a whitespace | COMMENT |
| MEDIUM | test/test_refs.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_refs.py | 554 | # Create a new branch that is likely to touch the file we changed. | COMMENT |
| MEDIUM | test/test_refs.py | 645 | # Create a new non-head ref just to be sure we handle it even if packed. | COMMENT |
| MEDIUM | test/test_refs.py | 748 | # Create a file containing a valid reference outside the repository. Attempting | COMMENT |
| MEDIUM | test/tstrunner.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_installation.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_installation.py | 52 | # Create a convenience function to run commands in it. | COMMENT |
| MEDIUM | test/test_repo.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_repo.py | 1221 | # Create a repo and make sure it's pointing to the relocated .git directory. | COMMENT |
| MEDIUM | test/test_reflog.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_config.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_config.py | 62 | # Creating an additional config writer must fail due to exclusive | COMMENT |
| MEDIUM | test/test_index.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_remote.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_remote.py | 304 | # Create a new UN-shared repo and fetch into it after we pushed a change to the | COMMENT |
| MEDIUM | test/test_quick_doc.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_fixture_health.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_exc.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM⚡ | test/test_blob.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_base.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_commit.py | 3 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/test_commit.py | 393 | # Create a commit with Unicode in the message, and the author's name. | COMMENT |
| MEDIUM | test/deprecation/test_basic.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM⚡ | test/deprecation/lib.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/deprecation/__init__.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/deprecation/test_toplevel.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/deprecation/test_compat.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| MEDIUM | test/deprecation/test_remote_progress.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| 85 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/test_util.py | 160 | except PermissionError: | CODE |
| HIGH | test/test_repo.py | 1180 | except IndexError: | CODE |
| HIGH | test/test_repo.py | 1595 | except GitCommandError: | CODE |
| HIGH | test/test_repo.py | 884 | except OSError: | CODE |
| HIGH | test/test_repo.py | 496 | except OSError: | CODE |
| HIGH | test/test_repo.py | 509 | except OSError: | CODE |
| HIGH | test/test_index.py | 167 | except UnicodeDecodeError: | CODE |
| HIGH | test/test_remote.py | 68 | except ValueError: | CODE |
| HIGH | test/lib/helper.py | 318 | except Exception: | CODE |
| HIGH | smmap/smmap/mman.py | 65 | except (TypeError, KeyError): | CODE |
| HIGH | smmap/smmap/test/lib.py | 33 | except OSError: | CODE |
| HIGH | gitdb/gitdb/pack.py | 39 | except ImportError: | CODE |
| HIGH | gitdb/gitdb/fun.py | 703 | except ImportError: | CODE |
| HIGH | gitdb/gitdb/util.py | 181 | except OSError: | CODE |
| HIGH | gitdb/gitdb/stream.py | 36 | except ImportError: | CODE |
| HIGH | gitdb/gitdb/test/test_pack.py | 174 | except UnsupportedOperation: | CODE |
| HIGH | gitdb/gitdb/test/lib.py | 44 | except AttributeError: | CODE |
| HIGH | gitdb/gitdb/test/test_example.py | 31 | except UnboundLocalError: | CODE |
| HIGH | gitdb/gitdb/test/performance/test_pack.py | 119 | except UnsupportedOperation: | CODE |
| HIGH | gitdb/gitdb/db/ref.py | 46 | except OSError: | CODE |
| HIGH | gitdb/gitdb/db/ref.py | 73 | except Exception: | CODE |
| HIGH | gitdb/gitdb/db/base.py | 188 | except KeyError: | CODE |
| HIGH | git/cmd.py | 856 | except (GitCommandNotFound, PermissionError): | CODE |
| HIGH | git/cmd.py | 136 | except OSError: | CODE |
| HIGH | git/config.py | 460 | except ReferenceError: | CODE |
| HIGH | git/remote.py | 1248 | except AttributeError: | CODE |
| HIGH | git/remote.py | 971 | except ValueError: | CODE |
| HIGH | git/util.py | 1263 | except OSError: | CODE |
| HIGH | git/util.py | 1379 | except (AttributeError, TypeError): | CODE |
| HIGH | git/objects/fun.py | 133 | except IndexError: | CODE |
| HIGH | git/objects/commit.py | 848 | except AttributeError: | CODE |
| HIGH | git/objects/submodule/base.py | 249 | except ValueError: | CODE |
| HIGH | git/objects/submodule/base.py | 279 | except AttributeError: | CODE |
| HIGH | git/objects/submodule/base.py | 1436 | except KeyError: | CODE |
| HIGH | git/objects/submodule/base.py | 1684 | except (cp.NoSectionError, ValueError): | CODE |
| HIGH | git/objects/submodule/base.py | 451 | except FileNotFoundError: | CODE |
| HIGH | git/objects/submodule/base.py | 942 | except InvalidGitRepositoryError: | CODE |
| HIGH | git/refs/remote.py | 71 | except OSError: | CODE |
| HIGH | git/refs/remote.py | 75 | except OSError: | CODE |
| HIGH | git/refs/symbolic.py | 432 | except ValueError: | CODE |
| HIGH | git/refs/symbolic.py | 745 | except OSError: | CODE |
| HIGH | git/refs/symbolic.py | 997 | except ValueError: | CODE |
| HIGH | git/index/base.py | 195 | except AttributeError: | CODE |
| HIGH | git/index/base.py | 691 | except IndexError: | CODE |
| HIGH | git/index/base.py | 456 | except OSError: | CODE |
| HIGH | git/index/base.py | 628 | except KeyError: | CODE |
| HIGH | git/index/base.py | 1580 | except KeyError: | CODE |
| HIGH | git/repo/fun.py | 241 | except ValueError: | CODE |
| HIGH | git/repo/fun.py | 318 | except TypeError: | CODE |
| HIGH | git/repo/fun.py | 339 | except TypeError: | CODE |
| HIGH | git/repo/base.py | 389 | except Exception: | CODE |
| HIGH | git/repo/base.py | 435 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/deprecation/test_basic.py | 33 | CODE | |
| LOW | test/deprecation/test_basic.py | 35 | CODE | |
| LOW | test/deprecation/test_basic.py | 35 | CODE | |
| LOW | test/deprecation/test_basic.py | 36 | CODE | |
| LOW | test/lib/__init__.py | 8 | CODE | |
| LOW | smmap/smmap/__init__.py | 10 | CODE | |
| LOW | smmap/smmap/__init__.py | 11 | CODE | |
| LOW | gitdb/gitdb/fun.py | 702 | CODE | |
| LOW | gitdb/gitdb/util.py | 14 | CODE | |
| LOW | gitdb/gitdb/util.py | 87 | CODE | |
| LOW | gitdb/gitdb/util.py | 87 | CODE | |
| LOW | gitdb/gitdb/util.py | 28 | CODE | |
| LOW | gitdb/gitdb/__init__.py | 14 | CODE | |
| LOW | gitdb/gitdb/__init__.py | 15 | CODE | |
| LOW | gitdb/gitdb/__init__.py | 16 | CODE | |
| LOW | gitdb/gitdb/stream.py | 30 | CODE | |
| LOW | gitdb/gitdb/test/lib.py | 21 | CODE | |
| LOW | gitdb/gitdb/test/db/lib.py | 6 | CODE | |
| LOW | gitdb/gitdb/test/db/lib.py | 6 | CODE | |
| LOW | gitdb/gitdb/test/db/lib.py | 6 | CODE | |
| LOW | gitdb/gitdb/test/db/test_ref.py | 11 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 6 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 7 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 8 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 9 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 10 | CODE | |
| LOW | gitdb/gitdb/db/__init__.py | 11 | CODE | |
| LOW | git/db.py | 11 | CODE | |
| LOW | git/db.py | 26 | CODE | |
| LOW | git/cmd.py | 6 | CODE | |
| LOW | git/cmd.py | 71 | CODE | |
| LOW | git/cmd.py | 72 | CODE | |
| LOW | git/config.py | 44 | CODE | |
| LOW | git/config.py | 46 | CODE | |
| LOW | git/compat.py | 18 | CODE | |
| LOW | git/compat.py | 18 | CODE | |
| LOW | git/compat.py | 22 | CODE | |
| LOW | git/compat.py | 22 | CODE | |
| LOW | git/compat.py | 22 | CODE | |
| LOW | git/compat.py | 22 | CODE | |
| LOW | git/remote.py | 50 | CODE | |
| LOW | git/remote.py | 51 | CODE | |
| LOW | git/remote.py | 52 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 77 | CODE | |
| LOW | git/util.py | 95 | CODE | |
| LOW | git/util.py | 90 | CODE | |
| LOW | git/util.py | 91 | CODE | |
| LOW | git/util.py | 91 | CODE | |
| LOW | git/util.py | 92 | CODE | |
| LOW | git/util.py | 93 | CODE | |
| LOW | git/__init__.py | 91 | CODE | |
| LOW | git/__init__.py | 91 | CODE | |
| LOW | git/__init__.py | 91 | CODE | |
| 189 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/test_docs.py | 417 | origin.push() # Attempt push, ignore errors. | CODE |
| HIGH | test/test_docs.py | 418 | origin.push().raise_if_error() # Push and raise error if it fails. | CODE |
| HIGH⚡ | test/test_remote.py | 356 | res = remote.push(lhead.reference, progress) | CODE |
| HIGH⚡ | test/test_remote.py | 363 | res = remote.push(lhead.reference) | CODE |
| HIGH⚡ | test/test_remote.py | 369 | res = remote.push("+%s" % lhead.reference) | CODE |
| HIGH⚡ | test/test_remote.py | 382 | res = remote.push(progress=progress, tags=True) | CODE |
| HIGH⚡ | test/test_remote.py | 390 | res = remote.push(tags=True) | CODE |
| HIGH⚡ | test/test_remote.py | 396 | res = remote.push("+%s" % new_tag.path) | CODE |
| HIGH⚡ | test/test_remote.py | 401 | res = remote.push(":%s" % new_tag.path) | CODE |
| HIGH⚡ | test/test_remote.py | 411 | res = remote.push(new_head, progress) | CODE |
| HIGH⚡ | test/test_remote.py | 419 | res = remote.push(":%s" % new_head.path, force_with_lease=force_with_lease) | CODE |
| HIGH⚡ | test/test_remote.py | 426 | res = remote.push(":%s" % new_head.path) | CODE |
| HIGH⚡ | test/test_remote.py | 432 | res = remote.push(all=True) | CODE |
| HIGH⚡ | test/test_remote.py | 440 | remote.push(":%s" % other_tag.path, kill_after_timeout=10.0) | CODE |
| HIGH | test/test_remote.py | 325 | remote.push(rw_repo.head.reference) | CODE |
| HIGH | test/test_remote.py | 715 | rem.push("__BAD_REF__") | CODE |
| HIGH | test/test_remote.py | 966 | remote.push(url) | CODE |
| HIGH | test/test_remote.py | 983 | remote.push(url, allow_unsafe_protocols=True) | CODE |
| HIGH | test/test_remote.py | 1002 | remote.push(**unsafe_option) | CODE |
| HIGH | test/test_remote.py | 1029 | remote.push(**unsafe_option, allow_unsafe_options=True) | CODE |
| HIGH | git/remote.py | 125 | info = remote.push()[0] | STRING |
| HIGH | git/remote.py | 1223 | proc = self.repo.git.push( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test_submodule.py | 1199 | # ================================================== | COMMENT |
| MEDIUM | test/test_submodule.py | 1240 | # ============== | COMMENT |
| MEDIUM | test/test_submodule.py | 1261 | # ==================================== | COMMENT |
| MEDIUM | test/test_submodule.py | 1304 | # ============= | COMMENT |
| MEDIUM | test/test_submodule.py | 1332 | # ============== | COMMENT |
| MEDIUM | test/test_submodule.py | 1361 | # ================= | COMMENT |
| MEDIUM | test/deprecation/test_basic.py | 38 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | doc/source/conf.py | 24 | # --------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 94 | # ----------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 159 | # ------------------------ | COMMENT |
| MEDIUM | git/db.py | 28 | # -------------------------------------------------------- | COMMENT |
| MEDIUM | git/cmd.py | 74 | # --------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/cmd.py | 95 | # ============================================================================== | COMMENT |
| MEDIUM | git/cmd.py | 97 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/config.py | 53 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | git/compat.py | 36 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/remote.py | 58 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | git/util.py | 109 | # --------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/types.py | 218 | # ----------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/exc.py | 58 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/diff.py | 45 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/objects/tree.py | 47 | # -------------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/fun.py | 39 | # --------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/util.py | 84 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/commit.py | 56 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/objects/base.py | 36 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/tag.py | 33 | # --------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/submodule/root.py | 22 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/submodule/base.py | 74 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/objects/submodule/base.py | 902 | # =============================== | COMMENT |
| MEDIUM | git/objects/submodule/base.py | 906 | # =============================== | COMMENT |
| MEDIUM | git/refs/log.py | 38 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/refs/remote.py | 24 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/refs/symbolic.py | 50 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/refs/head.py | 29 | # ------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/refs/reference.py | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/refs/tag.py | 27 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/index/fun.py | 54 | # ------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/index/util.py | 25 | # --------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/index/typ.py | 28 | # --------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/index/base.py | 89 | # ------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | git/repo/fun.py | 50 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | git/repo/base.py | 94 | # ----------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 42 | CODE | |
| LOW | fuzzing/fuzz-targets/fuzz_submodule.py | 23 | CODE | |
| LOW | test/test_submodule.py | 136 | CODE | |
| LOW | test/test_submodule.py | 174 | CODE | |
| LOW | test/test_submodule.py | 200 | CODE | |
| LOW | test/test_submodule.py | 465 | CODE | |
| LOW | test/test_git.py | 854 | CODE | |
| LOW | test/test_clone.py | 383 | CODE | |
| LOW | test/test_command_guards.py | 41 | CODE | |
| LOW | test/test_diff.py | 425 | CODE | |
| LOW | test/test_refs.py | 298 | CODE | |
| LOW | test/test_refs.py | 956 | CODE | |
| LOW | test/test_refs.py | 979 | CODE | |
| LOW | test/test_refs.py | 998 | CODE | |
| LOW | test/test_repo.py | 121 | CODE | |
| LOW | test/test_repo.py | 146 | CODE | |
| LOW | test/test_config.py | 286 | CODE | |
| LOW | test/test_config.py | 1093 | CODE | |
| LOW | test/test_index.py | 791 | CODE | |
| LOW | test/test_index.py | 1254 | CODE | |
| LOW | test/test_index.py | 810 | CODE | |
| LOW | test/test_base.py | 37 | CODE | |
| LOW | test/lib/helper.py | 265 | CODE | |
| LOW | test/lib/helper.py | 296 | CODE | |
| LOW | test/lib/helper.py | 298 | CODE | |
| LOW | test/performance/test_odb.py | 13 | CODE | |
| LOW | smmap/smmap/mman.py | 303 | CODE | |
| LOW | smmap/smmap/mman.py | 491 | CODE | |
| LOW | smmap/smmap/test/test_mman.py | 50 | CODE | |
| LOW | smmap/smmap/test/test_mman.py | 96 | CODE | |
| LOW | smmap/smmap/test/test_buf.py | 25 | CODE | |
| LOW | gitdb/gitdb/pack.py | 862 | CODE | |
| LOW | gitdb/gitdb/fun.py | 536 | CODE | |
| LOW | gitdb/gitdb/fun.py | 248 | CODE | |
| LOW | gitdb/gitdb/test/test_stream.py | 76 | CODE | |
| LOW | gitdb/gitdb/test/performance/test_pack.py | 105 | CODE | |
| LOW | gitdb/gitdb/db/git.py | 44 | CODE | |
| LOW | git/cmd.py | 102 | CODE | |
| LOW | git/cmd.py | 141 | CODE | |
| LOW | git/cmd.py | 188 | CODE | |
| LOW | git/cmd.py | 792 | CODE | |
| LOW | git/cmd.py | 1039 | CODE | |
| LOW | git/cmd.py | 1104 | CODE | |
| LOW | git/cmd.py | 1351 | CODE | |
| LOW | git/cmd.py | 1745 | CODE | |
| LOW | git/config.py | 270 | CODE | |
| LOW | git/config.py | 77 | CODE | |
| LOW | git/config.py | 412 | CODE | |
| LOW | git/config.py | 473 | CODE | |
| LOW | git/config.py | 668 | CODE | |
| LOW | git/config.py | 737 | CODE | |
| LOW | git/config.py | 866 | CODE | |
| LOW | git/config.py | 1055 | CODE | |
| LOW | git/config.py | 498 | CODE | |
| LOW | git/config.py | 511 | CODE | |
| LOW | git/remote.py | 218 | CODE | |
| LOW | git/remote.py | 383 | CODE | |
| LOW | git/remote.py | 705 | CODE | |
| LOW | git/remote.py | 953 | CODE | |
| LOW | git/util.py | 397 | CODE | |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/deprecation/lib.py | 6 | __all__ = ["assert_no_deprecation_warning", "suppress_deprecation_warning"] | CODE |
| LOW | test/lib/__init__.py | 10 | __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))] | CODE |
| LOW | test/lib/helper.py | 6 | __all__ = [ | CODE |
| LOW | smmap/smmap/mman.py | 12 | __all__ = ["StaticWindowMapManager", "SlidingWindowMapManager", "WindowCursor"] | CODE |
| LOW | smmap/smmap/buf.py | 4 | __all__ = ["SlidingWindowMapBuffer"] | CODE |
| LOW | smmap/smmap/util.py | 8 | __all__ = ["align_to_mmap", "is_64_bit", | CODE |
| LOW | smmap/smmap/test/lib.py | 6 | __all__ = ['TestBase', 'FileCreator'] | CODE |
| LOW | gitdb/gitdb/exc.py | 8 | __all__ = [ | CODE |
| LOW | git/db.py | 6 | __all__ = ["GitCmdObjectDB", "GitDB"] | CODE |
| LOW | git/cmd.py | 8 | __all__ = ["GitMeta", "Git"] | CODE |
| LOW | git/cmd.py | 1177 | def set_persistent_git_options(self, **kwargs: Any) -> None: | CODE |
| LOW | git/config.py | 8 | __all__ = ["GitConfigParser", "SectionConstraint"] | CODE |
| LOW | git/remote.py | 8 | __all__ = ["RemoteProgress", "PushInfo", "FetchInfo", "Remote"] | CODE |
| LOW | git/remote.py | 590 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/util.py | 8 | __all__ = [ | CODE |
| LOW | git/__init__.py | 8 | __all__ = [ | CODE |
| LOW | git/exc.py | 8 | __all__ = [ | CODE |
| LOW | git/diff.py | 6 | __all__ = ["DiffConstants", "NULL_TREE", "NULL_TREE_SHA", "INDEX", "Diffable", "DiffIndex", "Diff"] | CODE |
| LOW | git/objects/tree.py | 6 | __all__ = ["TreeModifier", "Tree"] | CODE |
| LOW | git/objects/tree.py | 207 | def _set_cache_(self, attr: str) -> None: | STRING |
| LOW | git/objects/fun.py | 6 | __all__ = [ | CODE |
| LOW | git/objects/util.py | 8 | __all__ = [ | CODE |
| LOW | git/objects/commit.py | 6 | __all__ = ["Commit"] | CODE |
| LOW | git/objects/commit.py | 241 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/objects/__init__.py | 6 | __all__ = [ | CODE |
| LOW | git/objects/blob.py | 6 | __all__ = ["Blob"] | CODE |
| LOW | git/objects/base.py | 6 | __all__ = ["Object", "IndexObject"] | CODE |
| LOW | git/objects/base.py | 159 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/objects/base.py | 280 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/objects/tag.py | 12 | __all__ = ["TagObject"] | CODE |
| LOW | git/objects/tag.py | 105 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/objects/submodule/util.py | 4 | __all__ = [ | CODE |
| LOW | git/objects/submodule/util.py | 89 | def set_submodule(self, submodule: "Submodule") -> None: | CODE |
| LOW | git/objects/submodule/__init__.py | 4 | __all__ = ["Submodule", "UpdateProgress", "RootModule", "RootUpdateProgress"] | CODE |
| LOW | git/objects/submodule/root.py | 4 | __all__ = ["RootModule", "RootUpdateProgress"] | CODE |
| LOW | git/objects/submodule/base.py | 4 | __all__ = ["Submodule", "UpdateProgress"] | CODE |
| LOW | git/objects/submodule/base.py | 170 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/refs/log.py | 4 | __all__ = ["RefLog", "RefLogEntry"] | CODE |
| LOW | git/refs/remote.py | 6 | __all__ = ["RemoteReference"] | CODE |
| LOW | git/refs/__init__.py | 4 | __all__ = [ | CODE |
| LOW | git/refs/symbolic.py | 4 | __all__ = ["SymbolicReference"] | CODE |
| LOW | git/refs/head.py | 9 | __all__ = ["HEAD", "Head"] | CODE |
| LOW | git/refs/reference.py | 4 | __all__ = ["Reference"] | CODE |
| LOW | git/refs/tag.py | 11 | __all__ = ["TagReference", "Tag"] | CODE |
| LOW | git/index/fun.py | 7 | __all__ = [ | CODE |
| LOW | git/index/util.py | 6 | __all__ = ["TemporaryFileSwap", "post_clear_cache", "default_index", "git_working_dir"] | CODE |
| LOW | git/index/__init__.py | 6 | __all__ = [ | CODE |
| LOW | git/index/typ.py | 6 | __all__ = ["BlobFilter", "BaseIndexEntry", "IndexEntry", "StageType"] | CODE |
| LOW | git/index/base.py | 9 | __all__ = ["IndexFile", "CheckoutError", "StageType"] | CODE |
| LOW | git/index/base.py | 161 | def _set_cache_(self, attr: str) -> None: | CODE |
| LOW | git/repo/fun.py | 8 | __all__ = [ | CODE |
| LOW | git/repo/__init__.py | 6 | __all__ = ["Repo"] | CODE |
| LOW | git/repo/base.py | 8 | __all__ = ["Repo"] | CODE |
| LOW | git/repo/base.py | 1040 | def _set_alternates(self, alts: List[str]) -> None: | CODE |
| LOW | git/repo/base.py | 1006 | def _set_daemon_export(self, value: object) -> None: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fuzzing/fuzz-targets/fuzz_config.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | test/test_docs.py | 21 | # | COMMENT |
| LOW | test/__init__.py | 1 | # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors | COMMENT |
| LOW | test/test_index.py | 1601 | # distinguish from the real bash.exe. But even if the real bash.exe is absent or | COMMENT |
| LOW | test/test_quick_doc.py | 41 | # ![1-test_cloned_repo_object] | COMMENT |
| LOW | test/test_quick_doc.py | 81 | # ![6-test_cloned_repo_object] | COMMENT |
| LOW | test/test_quick_doc.py | 181 | COMMENT | |
| LOW | test/test_quick_doc.py | 221 | # File 2 version 1 | COMMENT |
| LOW | test/performance/__init__.py | 1 | # This module is part of GitPython and is released under the | COMMENT |
| LOW | smmap/doc/source/conf.py | 1 | # | COMMENT |
| LOW | smmap/doc/source/conf.py | 41 | copyright = '2011, Sebastian Thiel' | COMMENT |
| LOW | smmap/doc/source/conf.py | 61 | COMMENT | |
| LOW | smmap/doc/source/conf.py | 81 | #show_authors = False | COMMENT |
| LOW | smmap/doc/source/conf.py | 101 | # Add any paths that contain custom themes here, relative to this directory. | COMMENT |
| LOW | smmap/doc/source/conf.py | 121 | # relative to this directory. They are copied after the builtin static files, | COMMENT |
| LOW | smmap/doc/source/conf.py | 141 | #html_use_modindex = True | COMMENT |
| LOW | smmap/doc/source/conf.py | 181 | #latex_logo = None | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql.yml | 41 | # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin | COMMENT |
| LOW | doc/source/conf.py | 1 | # GitPython documentation build configuration file, originally created by | COMMENT |
| LOW | doc/source/conf.py | 61 | # non-false value, then it is used: | COMMENT |
| LOW | doc/source/conf.py | 101 | # html_title = None | COMMENT |
| LOW | doc/source/conf.py | 121 | # html_last_updated_fmt = '%b %d, %Y' | COMMENT |
| LOW | doc/source/conf.py | 141 | # html_split_index = False | COMMENT |
| LOW | doc/source/conf.py | 161 | # The paper size ('letter' or 'a4'). | COMMENT |
| LOW | doc/source/conf.py | 181 | # Additional stuff for the LaTeX preamble. | COMMENT |
| LOW | gitdb/doc/source/conf.py | 1 | # | COMMENT |
| LOW | gitdb/doc/source/conf.py | 41 | copyright = '2011, Sebastian Thiel' | COMMENT |
| LOW | gitdb/doc/source/conf.py | 61 | COMMENT | |
| LOW | gitdb/doc/source/conf.py | 101 | #html_theme_path = [] | COMMENT |
| LOW | gitdb/doc/source/conf.py | 121 | # so a file named "default.css" will overwrite the builtin "default.css". | COMMENT |
| LOW | gitdb/doc/source/conf.py | 141 | COMMENT | |
| LOW | gitdb/doc/source/conf.py | 181 | COMMENT | |
| LOW | gitdb/gitdb/stream.py | 161 | # is already complete, but there are still some bytes left in the compressed | COMMENT |
| LOW | gitdb/gitdb/stream.py | 241 | self._buflen = 0 | COMMENT |
| LOW | gitdb/gitdb/stream.py | 281 | # END handle tail | COMMENT |
| LOW | gitdb/gitdb/stream.py | 321 | # Stop when we have enough or there is no path to more output. | COMMENT |
| LOW | gitdb/gitdb/stream.py | 461 | # We will use it as scratch space for all delta ops. If the final | COMMENT |
| LOW | gitdb/gitdb/test/__init__.py | 1 | # Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors | COMMENT |
| LOW | gitdb/gitdb/test/db/__init__.py | 1 | # Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors | COMMENT |
| LOW | git/cmd.py | 301 | https://github.com/gitpython-developers/GitPython/pull/1650 | COMMENT |
| LOW | git/remote.py | 461 | # The ref_type_name can be branch, whereas we are still seeing a tag | COMMENT |
| LOW | git/__init__.py | 221 | ) | COMMENT |
| LOW | git/__init__.py | 241 | # unambiguously non-public and subject to immediate removal. Here, the public | COMMENT |
| LOW | git/objects/submodule/root.py | 321 | # END head is not detached | COMMENT |
| LOW | git/objects/submodule/base.py | 1041 | _logger.error( | COMMENT |
| LOW | git/refs/symbolic.py | 161 | if line.startswith("#"): | COMMENT |
| LOW | git/refs/reference.py | 101 | # From refs/files-backend.c in git-source: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fuzzing/fuzz-targets/fuzz_submodule.py | 114 | except Exception as e: | CODE |
| MEDIUM | fuzzing/fuzz-targets/utils.py | 53 | print(f"Error reading file {file_path}: {e}") | CODE |
| LOW⚡ | fuzzing/fuzz-targets/utils.py | 72 | except Exception as e: | CODE |
| MEDIUM⚡ | fuzzing/fuzz-targets/utils.py | 73 | print(f"Error loading exception list: {e}") | CODE |
| LOW | test/lib/helper.py | 118 | except Exception: | CODE |
| LOW | test/lib/helper.py | 237 | except Exception as ex: | CODE |
| LOW | test/lib/helper.py | 260 | except Exception as ex: | CODE |
| LOW | test/lib/helper.py | 318 | except Exception: | CODE |
| LOW | smmap/smmap/mman.py | 360 | except Exception: | CODE |
| LOW | smmap/smmap/mman.py | 570 | except Exception: | CODE |
| LOW | gitdb/gitdb/util.py | 75 | except Exception: | CODE |
| LOW | gitdb/gitdb/test/lib.py | 72 | except Exception: | CODE |
| LOW | gitdb/gitdb/db/ref.py | 73 | except Exception: | CODE |
| LOW | git/cmd.py | 205 | except Exception as ex: | STRING |
| LOW | git/config.py | 965 | except Exception: | CODE |
| LOW | git/config.py | 997 | except Exception: | CODE |
| LOW | git/remote.py | 986 | except Exception as e: | CODE |
| LOW | git/util.py | 594 | except Exception as ex: | CODE |
| LOW | git/util.py | 651 | except Exception: | CODE |
| LOW | git/util.py | 1014 | except Exception: | CODE |
| LOW | git/__init__.py | 297 | except Exception as _exc: | CODE |
| LOW | git/objects/util.py | 318 | except Exception as e: | CODE |
| LOW | git/objects/submodule/root.py | 428 | except Exception as err: | CODE |
| LOW | git/objects/submodule/base.py | 1113 | except Exception as err: | CODE |
| LOW | git/objects/submodule/base.py | 1256 | except Exception: | CODE |
| LOW | git/objects/submodule/base.py | 1665 | except Exception: | CODE |
| LOW | git/objects/submodule/base.py | 1695 | except Exception: | CODE |
| LOW | git/index/fun.py | 222 | except Exception as ex: | CODE |
| MEDIUM | git/repo/base.py | 432 | def __del__(self) -> None: | CODE |
| LOW | git/repo/base.py | 389 | except Exception: | STRING |
| LOW | git/repo/base.py | 435 | except Exception: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | test/test_refs.py | 278 | res = rw_repo.remotes.origin.refs.HEAD.reference.checkout() | CODE |
| CRITICAL | test/test_repo.py | 748 | for item in self.rorepo.head.commit.tree.traverse( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/test_git.py | 533 | token = "fake-token-1234" | CODE |
| LOW⚡ | test/test_util.py | 604 | "GIT_AUTHOR_NAME": "John Doe", | CODE |
| LOW⚡ | test/test_util.py | 606 | "GIT_COMMITTER_NAME": "Jane Doe", | CODE |
| LOW⚡ | test/test_util.py | 613 | self.assertEqual(committer.name, "Jane Doe") | CODE |
| LOW⚡ | test/test_util.py | 615 | self.assertEqual(author.name, "John Doe") | CODE |
| LOW | test/test_util.py | 795 | authorization = "Bearer fake-token-1234" | CODE |
| LOW⚡ | test/test_commit.py | 441 | ("User <user@example.com> 0 +0000\n" + forged, "user@example.com"), | CODE |
| LOW⚡ | test/test_commit.py | 444 | ("Forged <forged@example.com>", "user@example.com"), | CODE |
| LOW⚡ | test/test_commit.py | 446 | ("User>", "user@example.com"), | CODE |
| LOW | test/test_commit.py | 468 | commit.replace(author=Actor("User\n" + forged, "user@example.com")) | CODE |
| LOW | git/remote.py | 1001 | unset = "placeholder" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | smmap/smmap/test/test_tutorial.py | 31 | # before you can use the cursor, you have to specify a window you want to | COMMENT |
| MEDIUM | smmap/smmap/test/test_tutorial.py | 64 | # you can use it right away | COMMENT |
| MEDIUM | .github/workflows/codeql.yml | 47 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | COMMENT |
| LOW | git/index/base.py | 1243 | don't forget to :meth:`write` your changes to disk beforehand. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_remote.py | 344 | # master yet. We simply create it. | COMMENT |
| LOW | test/test_base.py | 159 | # On POSIX, we can just add Unicode files without problems. | COMMENT |
| MEDIUM | smmap/smmap/mman.py | 97 | """Assign rhs to this instance. This is required in order to get a real copy. | STRING |
| LOW | smmap/smmap/test/test_util.py | 103 | assert isinstance(is_64_bit(), bool) # just call it | CODE |
| LOW | gitdb/gitdb/fun.py | 314 | # this is very pythonic - we might have just use index based access here, | COMMENT |
| LOW | gitdb/gitdb/stream.py | 462 | # target buffer is smaller than our allocated space, we just use parts | COMMENT |
| LOW | git/diff.py | 697 | # is invalid. We just use the one mode we should have parsed. | COMMENT |
| MEDIUM | git/index/base.py | 116 | """An Index that can be manipulated using a native implementation in order to save | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tox.ini | 17 | CLICOLOR_FORCE = 1 # Set NO_COLOR to override this. | CODE |
| LOW | tox.ini | 25 | CLICOLOR_FORCE = 1 # Set NO_COLOR to override this. | CODE |
| LOW | test/test_docs.py | 246 | new_branch.commit = "HEAD~10" # Set branch to another commit without changing index or working trees. | CODE |
| LOW | test/test_index.py | 606 | # Write the file back. | COMMENT |
| LOW | test/performance/test_streams.py | 104 | # Write file - pump everything in at once to be a fast as possible. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | git/cmd.py | 1332 | CODE | |
| LOW | git/cmd.py | 1351 | CODE | |
| LOW | git/objects/commit.py | 109 | CODE | |
| LOW | git/objects/submodule/root.py | 77 | CODE | |
| LOW | git/objects/submodule/base.py | 578 | CODE | |
| LOW | git/objects/submodule/base.py | 782 | CODE | |
| LOW | git/index/base.py | 1223 | CODE |