Skip to content

Commit 5965c7b

Browse files
authored
Merge pull request #12 from mhagger/fix-tags-2
Also parse COMMIT argument into a commit
2 parents 72538b1 + 1018c17 commit 5965c7b

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)