From 79c19562b5ae8bc7082d458aa0419e32a0cb114b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 7 May 2023 07:42:25 +0530 Subject: [PATCH] When publishing stash untracked files as well --- publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.py b/publish.py index a88e30692..31187e3cf 100755 --- a/publish.py +++ b/publish.py @@ -493,7 +493,7 @@ def safe_read(path: str) -> str: @contextmanager def change_to_git_master() -> Generator[None, None, None]: stash_ref_before = safe_read('.git/refs/stash') - subprocess.check_call(['git', 'stash']) + subprocess.check_call(['git', 'stash', '-u']) try: branch_before = current_branch() if branch_before != 'master':