From f36662f603095a66fd0af83409eca36b94607021 Mon Sep 17 00:00:00 2001 From: Stoyan Dimov Date: Thu, 22 Dec 2022 12:49:42 +0100 Subject: [PATCH] Ensure 'open in browser' contains file path (#20) Fix #19 --- fzf-git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf-git.sh b/fzf-git.sh index 7245fd6..2209499 100644 --- a/fzf-git.sh +++ b/fzf-git.sh @@ -74,7 +74,7 @@ elif [[ $# -gt 1 ]]; then remote=$2 path=/tree/$branch ;; - file) path=/blob/$branch/$2 ;; + file) path=/blob/$branch/$(git rev-parse --show-prefix)$2 ;; tag) path=/releases/tag/$2 ;; *) exit 1 ;; esac