Skip to content

Commit 1018c17

Browse files
committed
Also parse COMMIT argument into a commit
This fixes invocations like $ git when-merged v1.0.0 master Signed-off-by: Michael Haggerty <[email protected]>
1 parent 72538b1 commit 1018c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-when-merged

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def main(args):
468468
commit = args.pop(0)
469469
# Convert commit into a SHA1:
470470
try:
471-
commit = rev_parse(commit)
471+
commit = rev_parse('%s^{commit}' % (commit,))
472472
except Failure as e:
473473
sys.exit(e.message)
474474

0 commit comments

Comments
 (0)