mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Fix path discrepancy in bats tests
This commit is contained in:
parent
f26412eeae
commit
8c8d1559e6
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue