From 39ef33464d15c0331b69c35924eb84e2356fd309 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 15 Feb 2021 16:56:48 -0800 Subject: [PATCH] fetch/push operations should pass --force --- lethe/lethe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lethe/lethe.py b/lethe/lethe.py index aa16c0c..c6a7dbe 100755 --- a/lethe/lethe.py +++ b/lethe/lethe.py @@ -139,7 +139,7 @@ def push_ref(remote: str = 'origin', """ if remote_ref is None: remote_ref = target_ref - return _run(['git', 'push', remote, target_ref + ':' + remote_ref], cwd=cwd) + return _run(['git', 'push', '--force', remote, target_ref + ':' + remote_ref], cwd=cwd) def fetch_ref(remote: str = 'origin', @@ -163,7 +163,7 @@ def fetch_ref(remote: str = 'origin', """ if target_ref is None: target_ref = remote_ref - return _run(['git', 'fetch', remote, remote_ref + ':' + target_ref], cwd=cwd) + return _run(['git', 'fetch', '--force', remote, remote_ref + ':' + target_ref], cwd=cwd) def deref_symref(ref: str,