File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ func Dir() (string, error) {
84
84
}
85
85
86
86
func DefaultBranch (remote string ) string {
87
- if name , err := SymbolicRef (fmt .Sprintf ("refs/remotes/%s/HEAD" , remote )); err ! = nil {
87
+ if name , err := SymbolicRef (fmt .Sprintf ("refs/remotes/%s/HEAD" , remote )); err = = nil {
88
88
return name
89
89
}
90
90
return "refs/heads/main"
@@ -188,7 +188,6 @@ func Spawn(args ...string) error {
188
188
}
189
189
190
190
func Quiet (args ... string ) bool {
191
- fmt .Printf ("%v\n " , args )
192
191
cmd := exec .Command ("git" , args ... )
193
192
cmd .Stderr = os .Stderr
194
193
return cmd .Run () == nil
@@ -203,7 +202,7 @@ func SymbolicFullName(name string) (string, error) {
203
202
}
204
203
205
204
func SymbolicRef (ref string ) (string , error ) {
206
- output , err := execGit ("symbolic-ref" , ref )
205
+ output , err := execGitQuiet ("symbolic-ref" , ref )
207
206
if err != nil {
208
207
return "" , err
209
208
}
You can’t perform that action at this time.
0 commit comments