mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(repository): add ability to get repository config
This commit is contained in:
parent
0194d7c361
commit
594aca6474
7 changed files with 145 additions and 54 deletions
|
@ -141,6 +141,14 @@ void main() {
|
|||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
||||
test('returns config for repository', () {
|
||||
final config = repo.config;
|
||||
expect(config.getValue('remote.origin.url'),
|
||||
'git://github.com/SkinnyMind/libgit2dart.git');
|
||||
|
||||
config.free();
|
||||
});
|
||||
|
||||
test('returns empty string when there is no namespace', () {
|
||||
expect(repo.namespace, isEmpty);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue