We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3cf3da commit b7927f3Copy full SHA for b7927f3
src/stack_pr/cli.py
@@ -1370,7 +1370,7 @@ def main():
1370
current_branch = get_current_branch_name()
1371
get_branch_name_base(common_args.branch_name_template)
1372
try:
1373
- if args.stash:
+ if args.command in ["submit", "export"] and args.stash:
1374
run_shell_command(["git", "stash", "save"], quiet=not common_args.verbose)
1375
1376
if args.command != "view" and not is_repo_clean():
@@ -1403,7 +1403,7 @@ def main():
1403
print_cmd_failure_details(exc)
1404
raise
1405
finally:
1406
1407
run_shell_command(["git", "stash", "pop"], quiet=not common_args.verbose)
1408
1409
0 commit comments