Commit Graph

8 Commits

Author SHA1 Message Date
Denis Bilenko a689396ebc s/GitRepositoryInfo/RepositoryInfo 2024-12-04 14:10:39 +01:00
Denis Bilenko 5131488b16 clean up comment 2024-12-04 12:16:59 +01:00
Denis Bilenko a623cfdd23 Switch to string from vfs.Path in the signature
It seems that because vfs.Path does filepath.Abs (OS-specific) transformation
that mangles the path even when it's already in good state, e.g. /Workspace/Something
and that causes the tests to fail on Windows.
2024-12-03 12:46:42 +01:00
Denis Bilenko 4d38475ff3 refactor test code a bit - extract helper assert groups 2024-12-03 09:19:45 +01:00
Denis Bilenko 8fe958f67b Do not fail on git operations in bundle and sync, log warnings instead; add more tests.
- Change GitRepositoryInfo.WorktreeRoot to string
- Restore original warnings logs for when branch and commit could not be read
- Add new logs for when repository could not be read. However, if we can figure out git root then use it, even if parsing later fails.
2024-12-03 09:15:50 +01:00
Denis Bilenko 017836f1a7 prefix integration tests with TestAcc 2024-12-03 09:15:50 +01:00
Denis Bilenko 42502513bf use t.Cleanup instead of defer 2024-12-03 09:15:50 +01:00
Denis Bilenko 0ba23142a2 add test for FetchRepositoryInfo 2024-12-03 09:15:50 +01:00