Skip to content

Commit

Permalink
Update minnie-kenny.sh to run with Jenkins' old git (broadinstitute#5169
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kshakir authored Sep 11, 2019
1 parent 88ba339 commit 51dfef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minnie-kenny.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ validate_setup() {
fi
fi

minnie_kenny_git_dir="$(git rev-parse --absolute-git-dir)"
# Get the git absolute directory, even when older versions of git do not support --absolute-git-dir
minnie_kenny_git_dir="$(cd "$(git rev-parse --git-dir)" && pwd)"
if [ ! -f "${minnie_kenny_git_dir}/../${minnie_kenny_gitconfig}" ]; then
echo_err "Error: ${minnie_kenny_gitconfig} was not found next to the directory ${minnie_kenny_git_dir}"
exit 1
Expand Down

0 comments on commit 51dfef4

Please sign in to comment.