@@ -36,7 +36,8 @@ func TestStatusCmd_Integration(t *testing.T) {
36
36
setupGitConfig (t , tmpWork )
37
37
38
38
readmePath := filepath .Join (tmpWork , "README.md" )
39
- os .WriteFile (readmePath , []byte ("Initial remote content" ), 0644 )
39
+ assert .NoError (t , os .WriteFile (readmePath , []byte ("Initial remote content" ), 0644 ))
40
+
40
41
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "add" , "." ))
41
42
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "commit" , "-m" , "Initial commit" ))
42
43
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "push" , "-u" , "origin" , "main" ))
@@ -52,13 +53,13 @@ func TestStatusCmd_Integration(t *testing.T) {
52
53
assert .NoError (t , utils .ExecCmd (rootDir , "git" , "add" , "." ))
53
54
assert .NoError (t , utils .ExecCmd (rootDir , "git" , "commit" , "-m" , "Add subrepo" ))
54
55
55
- checkStatus (rootDir , subrepoPath )
56
+ checkStatus (subrepoPath )
56
57
57
58
changelogPath := filepath .Join (tmpWork , "CHANGELOG.md" )
58
59
os .WriteFile (changelogPath , []byte ("Changelog added" ), 0644 )
59
60
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "add" , "." ))
60
61
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "commit" , "-m" , "Add CHANGELOG" ))
61
62
assert .NoError (t , utils .ExecCmd (tmpWork , "git" , "push" , "origin" , "main" ))
62
63
63
- checkStatus (rootDir , subrepoPath )
64
+ checkStatus (subrepoPath )
64
65
}
0 commit comments