mirror of
https://github.com/git/git.git
synced 2026-02-08 08:47:48 +00:00
git stash: make sure that .git/logs/refs/ exists
If the user has not activated reflogs, or if nothing has been recorded yet (as is the case directly after cloning), said directory may not exist yet. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Pat Thoyts
parent
71587142a7
commit
769afb7aec
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user