refactor(revparse)!: add ability to get different git objects based on spec

This commit is contained in:
Aleksey Kulikov 2022-02-19 12:35:19 +03:00
parent e83d6ab29a
commit 1c9dba62de
3 changed files with 48 additions and 19 deletions

View file

@ -55,7 +55,7 @@ void main() {
});
test('creates worktree at provided path from provided reference', () {
final head = RevParse.single(repo: repo, spec: 'HEAD');
final head = RevParse.single(repo: repo, spec: 'HEAD') as Commit;
final worktreeBranch = Branch.create(
repo: repo,
name: 'v1',