From d0c9d9c9852ad08547fa8a63cd3fcc9157f9d028 Mon Sep 17 00:00:00 2001 From: Semisol Date: Thu, 19 Aug 2021 03:11:57 +0300 Subject: [PATCH] fix local not showing if no common ancestor --- git-force | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-force b/git-force index a7af5a6..7a75f11 100755 --- a/git-force +++ b/git-force @@ -94,8 +94,8 @@ echo "" echo "remote:" git show -s "$PRETTY" "$REMOTE_HASH" echo "" -echo "remote:" -git show -s "$PRETTY" "$REMOTE_HASH" +echo "local:" +git show -s "$PRETTY" "$LOCAL_HASH" else echo "The following commits will be OVERWRITTEN:" git log "$PRETTY" "$FORK_POINT..$REMOTE_HASH"