mirror of
https://github.com/git/git.git
synced 2026-02-06 16:01:36 +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
Stepan Kasal
parent
d4c36517ad
commit
3c8365cf35
@@ -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