@@ -119,7 +119,7 @@ func TestSyncFetch(t *testing.T) {
119119test : func (cmdObj * oscommands.CmdObj ) {
120120assert .True (t , cmdObj .ShouldLog ())
121121assert .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) {
128128test : func (cmdObj * oscommands.CmdObj ) {
129129assert .True (t , cmdObj .ShouldLog ())
130130assert .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) {
157157test : func (cmdObj * oscommands.CmdObj ) {
158158assert .False (t , cmdObj .ShouldLog ())
159159assert .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) {
166166test : func (cmdObj * oscommands.CmdObj ) {
167167assert .False (t , cmdObj .ShouldLog ())
168168assert .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