mirror of
https://github.com/kazhala/dotbare
synced 2024-11-02 09:40:27 +00:00
fix freset
This commit is contained in:
parent
b7fb14e728
commit
21da409977
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user