From 8c8d1559e604dbcb95e2efebc46315ab3f9d9ae0 Mon Sep 17 00:00:00 2001 From: Matt Cengia Date: Wed, 13 May 2026 22:20:34 +1000 Subject: [PATCH] Fix path discrepancy in bats tests --- tests/git-browse.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/git-browse.bats b/tests/git-browse.bats index 190ef00..954e491 100644 --- a/tests/git-browse.bats +++ b/tests/git-browse.bats @@ -24,11 +24,11 @@ get_file_uri() { local commit_hash= commit_hash=$(git rev-parse HEAD) if [ "$mode" = 'github' ]; then - REPLY="https://github.com/tj/git-extras/blob/$commit_hash/${filename}" + REPLY="https://github.com/tj/git-extras/blob/$commit_hash/${filename#./}" elif [ "$mode" = 'gitlab' ]; then - REPLY="https://gitlab.com/tj/git-extras/-/blob/${commit_hash}/${filename}" + REPLY="https://gitlab.com/tj/git-extras/-/blob/${commit_hash}/${filename#./}" elif [ "$mode" = 'bitbucket' ]; then - REPLY="https://bitbucket.org/tj/git-extras/src/${commit_hash}/${filename}" + REPLY="https://bitbucket.org/tj/git-extras/src/${commit_hash}/${filename#./}" fi }