Repository: openlawlibrary/taf (language: python)

Issue:
Check what happens if a repository is located directly inside the filesystem's root
We should be able to instantiate a `GitRepository` whose name is not in the `namespace/name` format is it should only be used to have access to git methods and we want to skip name validation


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d2495f86..52359f38 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning][semver].
 
 ### Added
 
+- Add test for repo initialization when it is directly inside drive's root ([352])
 - Add functions for adding/updating/removing dependencies to/from dependencies.json ([338])
 
 ### Changed
@@ -30,6 +31,7 @@ and this project adheres to [Semantic Versioning][semver].
 - Fix commits per repositories function when same target commits are on different branches ([337])
 - Add missing `write` flag to `taf targets sign` ([329])
 
+[352]: https://github.com/openlawlibrary/taf/pull/352
 [351]: https://github.com/openlawlibrary/taf/pull/351
 [349]: https://github.com/openlawlibrary/taf/pull/349
 [346]: https://github.com/openlawlibrary/taf/pull/346


Test patch:
diff --git a/taf/tests/test_repository.py b/taf/tests/test_repository.py
index 70327aed..d8abd22b 100644
--- a/taf/tests/test_repository.py
+++ b/taf/tests/test_repository.py
@@ -64,6 +64,14 @@ def test_url_invalid_urls():
         GitRepository("path", "namespace/repo", urls=urls)
 
 
+def test_create_repo_when_in_directory_root():
+    drive_root = Path("/").resolve()
+    path = drive_root / "repo_name"
+    repo = GitRepository(path=path)
+    assert repo.name == "repo_name"
+    assert repo.library_dir == drive_root
+
+
 def test_from_json_dict():
     data = {
         "library_dir": "path",