Skip to content

Commit 60251b1

Browse files
committed
fix
Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
1 parent b47fb7a commit 60251b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sign-commits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ def main():
392392
# Ask for confirmation unless non-interactive mode
393393
if not args.non_interactive:
394394
try:
395-
response = input(f"\nAdd DCO sign-off to {commits_needing_signoff} commits? [y/N]: ")
396-
if response.lower() not in ["y", "yes"]:
395+
response = input(f"\nAdd DCO sign-off to {commits_needing_signoff} commits? [Y/n]: ")
396+
if response.lower().strip() not in ["y", "yes", ""]:
397397
print("Aborted by user")
398398
sys.exit(1)
399399
except KeyboardInterrupt:

0 commit comments

Comments
 (0)