Skip to content

Commit

Permalink
Fix git-mr hook when using symlink to script
Browse files Browse the repository at this point in the history
  • Loading branch information
Djuuu committed Jul 19, 2024
1 parent 41563ab commit 97d2a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-mr
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ mr_hook() {
git_mr_readonly show

local git_dir; git_dir=$(git rev-parse --git-dir)
local git_mr_dir; git_mr_dir="$(dirname "${BASH_SOURCE[0]}")"
local git_mr_dir; git_mr_dir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"

[[ -d "${git_dir}/hooks" ]] || mkdir "${git_dir}/hooks"

Expand Down

0 comments on commit 97d2a54

Please sign in to comment.