From 5fedffdf28a34d24c3b7ba44806dafb37ee05a23 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 5 Aug 2020 10:16:57 -0400 Subject: [PATCH] migration 3c1285bb23e2: drop check=True Otherwise this will fail for invalid repos --- .../versions/3c1285bb23e2_allow_deleting_default_branch.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gitsrht/alembic/versions/3c1285bb23e2_allow_deleting_default_branch.py b/gitsrht/alembic/versions/3c1285bb23e2_allow_deleting_default_branch.py index bdfd3dc..3ad997c 100644 --- a/gitsrht/alembic/versions/3c1285bb23e2_allow_deleting_default_branch.py +++ b/gitsrht/alembic/versions/3c1285bb23e2_allow_deleting_default_branch.py @@ -29,8 +29,7 @@ def upgrade(): print("Setting receive.denyDeleteCurrent=ignore") for repo in tqdm(session.query(Repository).all()): subprocess.run(["git", "config", "receive.denyDeleteCurrent", "ignore"], - check=True, cwd=repo.path, - stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + cwd=repo.path, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def downgrade(): @@ -38,5 +37,4 @@ def downgrade(): session = Session(bind=bind) for repo in tqdm(session.query(Repository).all()): subprocess.run(["git", "config", "--unset", "receive.denyDeleteCurrent"], - check=True, cwd=repo.path, - stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + cwd=repo.path, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) -- 2.38.4