mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test(repository): test against repo copied into tmp directory
This commit is contained in:
parent
9acf3a8a9e
commit
be680595bc
50 changed files with 1021 additions and 107 deletions
|
@ -7,12 +7,12 @@ void main() {
|
|||
try {
|
||||
final repo = Repository.open(Directory.current.path);
|
||||
|
||||
print('Path to git repository: ${repo.path()}');
|
||||
print('Is repository bare: ${repo.isBare()}');
|
||||
print('Is repository empty: ${repo.isEmpty()}');
|
||||
print('Is head detached: ${repo.isHeadDetached()}');
|
||||
print('Path to git repository: ${repo.path}');
|
||||
print('Is repository bare: ${repo.isBare}');
|
||||
print('Is repository empty: ${repo.isEmpty}');
|
||||
print('Is head detached: ${repo.isHeadDetached}');
|
||||
try {
|
||||
print('Prepared message: ${repo.message()}');
|
||||
print('Prepared message: ${repo.message}');
|
||||
} catch (e) {
|
||||
print('Prepared message: $e');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue