From 110eca7541ea788766c9bcdec8cd946cb32294aa Mon Sep 17 00:00:00 2001 From: kevin zhuang Date: Fri, 17 Apr 2020 17:23:39 +1000 Subject: [PATCH] fix lsp created error --- helper/git_query.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helper/git_query.sh b/helper/git_query.sh index 18e0415..b1fee8e 100644 --- a/helper/git_query.sh +++ b/helper/git_query.sh @@ -18,7 +18,10 @@ function get_commit() { /usr/bin/git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" \ log --oneline --color=always --decorate=short \ | fzf --no-multi --header="${header}" \ - --preview "${preview_str}" \ + --preview "echo {} \ + | awk '{print \$1}' \ + | xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} \ + show --color=always __" \ | awk '{print $1}' else /usr/bin/git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" \