2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00

fix freset

This commit is contained in:
kevin zhuang 2020-04-14 17:01:56 +10:00
parent b7fb14e728
commit 21da409977

View File

@ -60,7 +60,7 @@ if [[ -n "${search_commits}" ]]; then
xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} show --color=always __" | \
awk '{print $1}')
[[ -z "${selected_commites}" ]] && exit 0
get_confirmation "Reset HEAD to ${selected_commites} ${reset_option}?"
confirm=$(get_confirmation "Reset HEAD to ${selected_commites} ${reset_option}?")
[[ "${confirm}" != 'y' ]] && exit 0
/usr/bin/git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" reset "${selected_commites}" "${reset_option}"
else