mirror of
https://github.com/davidism/modify-repos.git
synced 2025-07-07 19:35:34 +00:00
parent
b0b6e11dcc
commit
353ba6a098
3 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
Unreleased
|
||||
|
||||
- Submit is disabled by default.
|
||||
- Error if target and work branch are the same.
|
||||
|
||||
## Version 0.1.0
|
||||
|
||||
|
|
|
@ -41,7 +41,11 @@ class Script[RepoType: Repo]:
|
|||
"""
|
||||
|
||||
def __init__(self, *, submit: bool = False) -> None:
|
||||
""" """
|
||||
if self.target == self.branch:
|
||||
raise ValueError(
|
||||
"Work branch name must be different than target branch name."
|
||||
)
|
||||
|
||||
source_file = inspect.getsourcefile(self.__class__)
|
||||
|
||||
if source_file is None:
|
||||
|
|
2
uv.lock
generated
2
uv.lock
generated
|
@ -335,7 +335,7 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "modify-repos"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1.dev0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "click" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue