File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -573,10 +573,10 @@ func (gincl *Client) InitDir(bare bool) error {
573
573
}
574
574
description := fmt .Sprintf ("%s@%s" , gincl .Username , hostname )
575
575
576
- // If there is no global git user.name or user.email set local ones
577
- cmd := git .Command ("config" , "--global" , " user.name" )
576
+ // If there is no git user.name or user.email set local ones
577
+ cmd := git .Command ("config" , "user.name" )
578
578
globalGitName , _ := cmd .Output ()
579
- cmd = git .Command ("config" , "--global" , " user.email" )
579
+ cmd = git .Command ("config" , "user.email" )
580
580
globalGitEmail , _ := cmd .Output ()
581
581
if len (globalGitName ) == 0 && len (globalGitEmail ) == 0 {
582
582
info , ierr := gincl .RequestAccount (gincl .Username )
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ type AnnexInfoRes struct {
115
115
// AnnexInit initialises the repository for annex.
116
116
// (git annex init)
117
117
func AnnexInit (description string ) error {
118
- args := []string {"init" , description }
118
+ args := []string {"init" , "--version=5" , description }
119
119
cmd := AnnexCommand (args ... )
120
120
stdout , stderr , err := cmd .OutputError ()
121
121
if err != nil {
Original file line number Diff line number Diff line change 1
- version=1.2
1
+ version=1.3
You can’t perform that action at this time.
0 commit comments