@@ -11,8 +11,8 @@ import (
1111 "github.com/codecrafters-io/tester-utils/test_case_harness"
1212)
1313
14- // MoveGitToTemp moves the system git binary to a temporary directory
15- func MoveGitToTemp (harness * test_case_harness.TestCaseHarness , logger * logger.Logger ) {
14+ // RelocateSystemGit moves the system git binary to a temporary directory
15+ func RelocateSystemGit (harness * test_case_harness.TestCaseHarness , logger * logger.Logger ) {
1616 oldGitPath , err := exec .LookPath ("git" )
1717 if err != nil {
1818 panic (fmt .Sprintf ("CodeCrafters Internal Error: git executable not found: %v" , err ))
@@ -34,11 +34,11 @@ func MoveGitToTemp(harness *test_case_harness.TestCaseHarness, logger *logger.Lo
3434 }
3535
3636 // Register teardown function to automatically restore git
37- harness .RegisterTeardownFunc (func () { restoreGit (tmpGitPath , oldGitPath ) })
37+ harness .RegisterTeardownFunc (func () { restoreSystemGit (tmpGitPath , oldGitPath ) })
3838}
3939
40- // RestoreGit moves the git binary back to its original location and cleans up
41- func restoreGit (newPath string , originalPath string ) error {
40+ // RestoreSystemGit moves the git binary back to its original location and cleans up
41+ func restoreSystemGit (newPath string , originalPath string ) error {
4242 command := fmt .Sprintf ("mv %s %s" , newPath , originalPath )
4343 moveCmd := exec .Command ("sh" , "-c" , command )
4444 moveCmd .Stdout = io .Discard
0 commit comments