[BUG] `git stash drop --help` removes stash
- From
- Alexander Daniel <alexander.daniel@openforce.com>
- Date
- May 22, 2012, 07:29 UTC
- Message-ID
- <95877607-FED0-41C0-9F12-B91FE9DE7871@openforce.com>
SUMMARY `git stash drop --help` removes stash@{0}
VERSION $ git --version git version 1.7.10.2
STEPS TO REPRODUCE
- put something on the stash with `git stash`
- Naively try to show help for `git stash drop` with `git stash drop --help`
- `git stash drop --help` actually removes stash@{0}: $ git stash drop --help
Dropped refs/stash@{0} (bfee7acd94b85e2b0bb5ef172893872140ba0520)EXPECTED BEHAVIOR: Invalid parameter error message is displayed (no modification of the stash)
Alex