@@ -90,7 +90,7 @@ func (r *repository) Add(path string) error {
9090 cmd .Dir = r .root
9191 output , err := cmd .CombinedOutput ()
9292 if err != nil {
93- return fmt .Errorf (string (output ))
93+ return fmt .Errorf ("%s" , string (output ))
9494 }
9595 return nil
9696}
@@ -107,7 +107,7 @@ func (r *repository) Commit(message string) error {
107107 message : m ,
108108 }
109109 }
110- return fmt .Errorf (m )
110+ return fmt .Errorf ("%s" , m )
111111 }
112112 return nil
113113}
@@ -133,7 +133,7 @@ func (r *repository) checkoutBranch(branch string, create bool) error {
133133 cmd .Dir = r .root
134134 output , err := cmd .CombinedOutput ()
135135 if err != nil {
136- return fmt .Errorf (string (output ))
136+ return fmt .Errorf ("%s" , string (output ))
137137 }
138138 return nil
139139}
@@ -143,7 +143,7 @@ func (r *repository) checkoutHash(hash string) error {
143143 cmd .Dir = r .root
144144 output , err := cmd .CombinedOutput ()
145145 if err != nil {
146- return fmt .Errorf (string (output ))
146+ return fmt .Errorf ("%s" , string (output ))
147147 }
148148 return nil
149149}
@@ -153,7 +153,7 @@ func (r *repository) CheckoutTag(tag string) error {
153153 cmd .Dir = r .root
154154 output , err := cmd .CombinedOutput ()
155155 if err != nil {
156- return fmt .Errorf (string (output ))
156+ return fmt .Errorf ("%s" , string (output ))
157157 }
158158 return nil
159159}
@@ -163,7 +163,7 @@ func (r *repository) CreateBranch(branch *Branch) error {
163163 cmd .Dir = r .root
164164 output , err := cmd .CombinedOutput ()
165165 if err != nil {
166- return fmt .Errorf (string (output ))
166+ return fmt .Errorf ("%s" , string (output ))
167167 }
168168 return nil
169169}
@@ -174,7 +174,7 @@ func (r *repository) DeleteBranch(name string) error {
174174 cmd .Dir = r .root
175175 output , err := cmd .CombinedOutput ()
176176 if err != nil {
177- return fmt .Errorf (string (output ))
177+ return fmt .Errorf ("%s" , string (output ))
178178 }
179179 return nil
180180}
@@ -185,7 +185,7 @@ func (r *repository) CherryPick(commit string) error {
185185 cmd .Dir = r .root
186186 output , err := cmd .CombinedOutput ()
187187 if err != nil {
188- return fmt .Errorf (string (output ))
188+ return fmt .Errorf ("%s" , string (output ))
189189 }
190190 return nil
191191}
@@ -196,7 +196,7 @@ func (r *repository) Stash() error {
196196 cmd .Dir = r .root
197197 output , err := cmd .CombinedOutput ()
198198 if err != nil {
199- return fmt .Errorf (string (output ))
199+ return fmt .Errorf ("%s" , string (output ))
200200 }
201201 return nil
202202}
@@ -207,7 +207,7 @@ func (r *repository) StashPop() error {
207207 cmd .Dir = r .root
208208 output , err := cmd .CombinedOutput ()
209209 if err != nil {
210- return fmt .Errorf (string (output ))
210+ return fmt .Errorf ("%s" , string (output ))
211211 }
212212 return nil
213213}
0 commit comments