Skip to content

Commit b06276c

Browse files
authored
Merge pull request #229 from achilleas-k/force-v5-repos
Force v5 repos
2 parents d2fd16f + afdad94 commit b06276c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ginclient/repos.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,10 @@ func (gincl *Client) InitDir(bare bool) error {
573573
}
574574
description := fmt.Sprintf("%s@%s", gincl.Username, hostname)
575575

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")
578578
globalGitName, _ := cmd.Output()
579-
cmd = git.Command("config", "--global", "user.email")
579+
cmd = git.Command("config", "user.email")
580580
globalGitEmail, _ := cmd.Output()
581581
if len(globalGitName) == 0 && len(globalGitEmail) == 0 {
582582
info, ierr := gincl.RequestAccount(gincl.Username)

git/annex.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ type AnnexInfoRes struct {
115115
// AnnexInit initialises the repository for annex.
116116
// (git annex init)
117117
func AnnexInit(description string) error {
118-
args := []string{"init", description}
118+
args := []string{"init", "--version=5", description}
119119
cmd := AnnexCommand(args...)
120120
stdout, stderr, err := cmd.OutputError()
121121
if err != nil {

version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.2
1+
version=1.3

0 commit comments

Comments
 (0)