summaryrefslogtreecommitdiffstats
path: root/modules/git/repo.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-01-25 19:15:58 +0100
committerGitHub <noreply@github.com>2022-01-25 18:15:58 +0000
commit80adbebbc8e0814d0fa0ac660d5c9452e458067b (patch)
tree50711b3b3760008b7b06abb22b452f2a12730dd2 /modules/git/repo.go
parent93250bfe278f46f0344f513a13b1b396eddb7406 (diff)
downloadgitea-80adbebbc8e0814d0fa0ac660d5c9452e458067b.tar.gz
gitea-80adbebbc8e0814d0fa0ac660d5c9452e458067b.zip
Unexport git.GlobalCommandArgs (#18376)
Unexport the git.GlobalCommandArgs variable.
Diffstat (limited to 'modules/git/repo.go')
-rw-r--r--modules/git/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/repo.go b/modules/git/repo.go
index 5636405118..663e13dc18 100644
--- a/modules/git/repo.go
+++ b/modules/git/repo.go
@@ -106,8 +106,8 @@ type CloneRepoOptions struct {
// Clone clones original repository to target path.
func Clone(ctx context.Context, from, to string, opts CloneRepoOptions) error {
- cargs := make([]string, len(GlobalCommandArgs))
- copy(cargs, GlobalCommandArgs)
+ cargs := make([]string, len(globalCommandArgs))
+ copy(cargs, globalCommandArgs)
return CloneWithArgs(ctx, from, to, cargs, opts)
}