forked from mirrors/jj
templater: ensure "template" node is passed to parse_commit_template_rule()
Assertion will be added by the next commit.
This commit is contained in:
parent
bf66beab36
commit
d1281ef48e
1 changed files with 2 additions and 5 deletions
|
@ -298,11 +298,8 @@ fn parse_commit_term<'a>(
|
|||
match name {
|
||||
"label" => {
|
||||
let label_pair = inner.next().unwrap();
|
||||
let label_template = parse_commit_template_rule(
|
||||
repo,
|
||||
workspace_id,
|
||||
label_pair.into_inner().next().unwrap(),
|
||||
);
|
||||
let label_template =
|
||||
parse_commit_template_rule(repo, workspace_id, label_pair);
|
||||
let arg_template = match inner.next() {
|
||||
None => panic!("label() requires two arguments"),
|
||||
Some(pair) => pair,
|
||||
|
|
Loading…
Reference in a new issue