Skip to content

Commit 7f3b0ae

Browse files
author
Scott Schulthess
committed
restore oauth basic
1 parent 59cd28e commit 7f3b0ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ func (g *GitClient) Init(branch string) error {
102102
if err := g.command("git", "config", "credential.https://github.com.helper", helperStr).Run(); err != nil {
103103
return fmt.Errorf("failed to configure github url: %s", err)
104104
}
105+
} else {
106+
if err := g.command("git", "config", "url.https://[email protected]/.insteadOf", "[email protected]:").Run(); err != nil {
107+
return fmt.Errorf("failed to configure github url: %s", err)
108+
}
105109
}
110+
106111
if err := g.command("git", "config", "url.https://.insteadOf", "git://").Run(); err != nil {
107112
return fmt.Errorf("failed to configure github url: %s", err)
108113
}

0 commit comments

Comments
 (0)