Opened 11 minutes ago
#37571 new Bug
backport.sh handles missing and empty commit arguments inconsistently
| Reported by: | gztong666 | Owned by: | |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Low | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
From the repository root on Django's main branch, run:
bash scripts/backport.sh echo $? bash scripts/backport.sh "" echo $?
With no argument, the script reports an unbound variable before printing
the usage message. With an empty argument, it prints the usage message
but exits with status 0.
In both cases, the script should print the usage message to stderr and
exit with status 1.
Proposed patch: https://github.com/django/django/pull/22393
Note:
See TracTickets
for help on using tickets.