@@ -107,27 +107,27 @@ func testCloneRepository(harness *test_case_harness.TestCaseHarness) error {
107107 defer os .RemoveAll (gitDir )
108108
109109 // Copy the custom_executable to the output path
110- command := fmt .Sprintf ("cp %s %s" , gitPath , gitDir )
111- logger .Debugf ("Cp -ed git to temp directory: %s" , gitDir )
110+ command := fmt .Sprintf ("mv %s %s" , gitPath , gitDir )
111+ logger .Debugf ("mv -ed git to temp directory: %s" , gitDir )
112112 //fmt.Println(command)
113113 copyCmd := exec .Command ("sh" , "-c" , command )
114114 copyCmd .Stdout = io .Discard
115115 copyCmd .Stderr = io .Discard
116116 if err := copyCmd .Run (); err != nil {
117- return fmt .Errorf ("CodeCrafters Internal Error: cp failed: %w" , err )
117+ return fmt .Errorf ("CodeCrafters Internal Error: mv failed: %w" , err )
118118 }
119119
120120 defer func () error {
121121 // Copy the custom_executable to the output path
122- command := fmt .Sprintf ("cp %s %s" , gitDir , gitPath )
123- logger .Debugf ("Cp -ed git to temp directory: %s" , gitPath )
122+ command := fmt .Sprintf ("mv %s %s" , gitDir , gitPath )
123+ logger .Debugf ("mv -ed git to og directory: %s" , gitPath )
124124 //fmt.Println(command)
125125 copyCmd := exec .Command ("sh" , "-c" , command )
126126 copyCmd .Stdout = io .Discard
127127 copyCmd .Stderr = io .Discard
128128
129129 if err := copyCmd .Run (); err != nil {
130- return fmt .Errorf ("CodeCrafters Internal Error: cp failed: %w" , err )
130+ return fmt .Errorf ("CodeCrafters Internal Error: mv failed: %w" , err )
131131 }
132132
133133 return nil
0 commit comments