File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 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) {
8484}
8585
8686func 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 {
8888 return name
8989 }
9090 return "refs/heads/main"
@@ -188,7 +188,6 @@ func Spawn(args ...string) error {
188188}
189189
190190func Quiet (args ... string ) bool {
191- fmt .Printf ("%v\n " , args )
192191 cmd := exec .Command ("git" , args ... )
193192 cmd .Stderr = os .Stderr
194193 return cmd .Run () == nil
@@ -203,7 +202,7 @@ func SymbolicFullName(name string) (string, error) {
203202}
204203
205204func SymbolicRef (ref string ) (string , error ) {
206- output , err := execGit ("symbolic-ref" , ref )
205+ output , err := execGitQuiet ("symbolic-ref" , ref )
207206 if err != nil {
208207 return "" , err
209208 }
You can’t perform that action at this time.
0 commit comments