Use readlink -f instead of realpath
... because readlink has a better chance of being installed.
This commit is contained in:
parent
f02c685d9a
commit
804edaad62
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
|||
set -eu
|
||||
|
||||
# make the GIT_DIR and GIT_INDEX_FILE absolute, before we change dir
|
||||
export GIT_DIR=$(realpath `git rev-parse --git-dir`)
|
||||
export GIT_INDEX_FILE=$(realpath `git rev-parse --git-path index`)
|
||||
export GIT_DIR=$(readlink -f `git rev-parse --git-dir`)
|
||||
export GIT_INDEX_FILE=$(readlink -f `git rev-parse --git-path index`)
|
||||
|
||||
wd=`pwd`
|
||||
|
||||
|
|
Reference in a new issue