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

This commit is contained in:
Aleksey Kulikov 2022-02-19 12:42:19 +03:00 committed by GitHub
parent e83d6ab29a
commit d0f7746a01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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',