@@ -119,7 +119,7 @@ func TestSyncFetch(t *testing.T) {
119119 test : func (cmdObj * oscommands.CmdObj ) {
120120 assert .True (t , cmdObj .ShouldLog ())
121121 assert .Equal (t , cmdObj .GetCredentialStrategy (), oscommands .PROMPT )
122- assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" })
122+ assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--no-write-fetch-head" })
123123 },
124124 },
125125 {
@@ -128,7 +128,7 @@ func TestSyncFetch(t *testing.T) {
128128 test : func (cmdObj * oscommands.CmdObj ) {
129129 assert .True (t , cmdObj .ShouldLog ())
130130 assert .Equal (t , cmdObj .GetCredentialStrategy (), oscommands .PROMPT )
131- assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--all" })
131+ assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--all" , "--no-write-fetch-head" })
132132 },
133133 },
134134 }
@@ -157,7 +157,7 @@ func TestSyncFetchBackground(t *testing.T) {
157157 test : func (cmdObj * oscommands.CmdObj ) {
158158 assert .False (t , cmdObj .ShouldLog ())
159159 assert .Equal (t , cmdObj .GetCredentialStrategy (), oscommands .FAIL )
160- assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" })
160+ assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--no-write-fetch-head" })
161161 },
162162 },
163163 {
@@ -166,7 +166,7 @@ func TestSyncFetchBackground(t *testing.T) {
166166 test : func (cmdObj * oscommands.CmdObj ) {
167167 assert .False (t , cmdObj .ShouldLog ())
168168 assert .Equal (t , cmdObj .GetCredentialStrategy (), oscommands .FAIL )
169- assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--all" })
169+ assert .Equal (t , cmdObj .Args (), []string {"git" , "fetch" , "--all" , "--no-write-fetch-head" })
170170 },
171171 },
172172 }
0 commit comments