diff options
author | 6543 <6543@obermui.de> | 2022-01-25 19:15:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 18:15:58 +0000 |
commit | 80adbebbc8e0814d0fa0ac660d5c9452e458067b (patch) | |
tree | 50711b3b3760008b7b06abb22b452f2a12730dd2 /integrations/git_test.go | |
parent | 93250bfe278f46f0344f513a13b1b396eddb7406 (diff) | |
download | gitea-80adbebbc8e0814d0fa0ac660d5c9452e458067b.tar.gz gitea-80adbebbc8e0814d0fa0ac660d5c9452e458067b.zip |
Unexport git.GlobalCommandArgs (#18376)
Unexport the git.GlobalCommandArgs variable.
Diffstat (limited to 'integrations/git_test.go')
-rw-r--r-- | integrations/git_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/git_test.go b/integrations/git_test.go index 93ff9d2543..e5a85eb756 100644 --- a/integrations/git_test.go +++ b/integrations/git_test.go @@ -167,7 +167,7 @@ func lfsCommitAndPushTest(t *testing.T, dstPath string) (littleLFS, bigLFS strin err = git.AddChanges(dstPath, false, ".gitattributes") assert.NoError(t, err) - err = git.CommitChangesWithArgs(dstPath, allowLFSFilters(), git.CommitChangesOptions{ + err = git.CommitChangesWithArgs(dstPath, git.AllowLFSFiltersArgs(), git.CommitChangesOptions{ Committer: &git.Signature{ Email: "user2@example.com", Name: "User Two", @@ -346,7 +346,7 @@ func generateCommitWithNewData(size int, repoPath, email, fullName, prefix strin // Commit // Now here we should explicitly allow lfs filters to run - globalArgs := allowLFSFilters() + globalArgs := git.AllowLFSFiltersArgs() err = git.AddChangesWithArgs(repoPath, globalArgs, false, filepath.Base(tmpFile.Name())) if err != nil { return "", err |