Skip to content
Open
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
10 changes: 10 additions & 0 deletions gerritlab/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import shutil
import time
import os
Expand Down Expand Up @@ -313,6 +314,12 @@ def main():
nargs="?",
help="The final branch that commits are intended to be merged into.",
)
parser.add_argument(
"--debug",
action="store_true",
default=False,
help="Show debugging information (subprocesses, HTTP requests, etc).",
)
parser.add_argument(
"--merge",
"-m",
Expand All @@ -336,6 +343,9 @@ def main():
)
args = parser.parse_args()

if args.debug:
logging.basicConfig(level=logging.DEBUG)

repo = Repo(os.getcwd(), search_parent_directories=True)
ensure_commitmsg_hook(repo.git_dir)

Expand Down