@@ -83,10 +83,10 @@ func (g *GitClient) Init(branch string) error {
83
83
if err := g .command ("git" , "checkout" , "-b" , branch ).Run (); err != nil {
84
84
return fmt .Errorf ("checkout to '%s' failed: %s" , branch , err )
85
85
}
86
- if err := g .command ("git" , "config" , "user.name" , "concourse-ci" ).Run (); err != nil {
86
+ if err := g .command ("git" , "config" , "--global" , " user.name" , "concourse-ci" ).Run (); err != nil {
87
87
return fmt .Errorf ("failed to configure git user: %s" , err )
88
88
}
89
- if err := g .command ("git" , "config" , "user.email" , "concourse@local" ).Run (); err != nil {
89
+ if err := g .command ("git" , "config" , "--global" , " user.email" , "concourse@local" ).Run (); err != nil {
90
90
return fmt .Errorf ("failed to configure git email: %s" , err )
91
91
}
92
92
@@ -108,7 +108,7 @@ func (g *GitClient) Init(branch string) error {
108
108
}
109
109
}
110
110
111
- if err := g .command ("git" , "config" , "url.https://.insteadOf" , "git://" ).Run (); err != nil {
111
+ if err := g .command ("git" , "config" , "--global" , " url.https://.insteadOf" , "git://" ).Run (); err != nil {
112
112
return fmt .Errorf ("failed to configure github url: %s" , err )
113
113
}
114
114
return nil
0 commit comments