diff --git a/git-stash.sh b/git-stash.sh index 4798bcf0e5..7b04cbf9cc 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -262,6 +262,7 @@ save_stash () { clear_stash || die "$(gettext "Cannot initialize stash")" create_stash "$stash_msg" $untracked + mkdir -p "$GIT_DIR/logs/${ref_stash%/*}" store_stash -m "$stash_msg" -q $w_commit || die "$(gettext "Cannot save the current status")" say Saved working directory and index state "$stash_msg"