summaryrefslogtreecommitdiffstats
path: root/modules/git/commit.go
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2022-01-10 10:46:26 -0500
committerGitHub <noreply@github.com>2022-01-10 23:46:26 +0800
commitaf9247392000c559bf8638f70b025d1894e6fd97 (patch)
treee76750ae5d70b0860a7cb66d2e0b297c84e4b2f0 /modules/git/commit.go
parent8c647bf0f6b19fe666c645ec16010d07bfe85a63 (diff)
downloadgitea-af9247392000c559bf8638f70b025d1894e6fd97.tar.gz
gitea-af9247392000c559bf8638f70b025d1894e6fd97.zip
Fix source typos (#18227)
Follow-up to #18219
Diffstat (limited to 'modules/git/commit.go')
-rw-r--r--modules/git/commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/commit.go b/modules/git/commit.go
index 26c5445e2a..3e3641b096 100644
--- a/modules/git/commit.go
+++ b/modules/git/commit.go
@@ -87,8 +87,8 @@ func AddChanges(repoPath string, all bool, files ...string) error {
}
// AddChangesWithArgs marks local changes to be ready for commit.
-func AddChangesWithArgs(repoPath string, gloablArgs []string, all bool, files ...string) error {
- cmd := NewCommandNoGlobals(append(gloablArgs, "add")...)
+func AddChangesWithArgs(repoPath string, globalArgs []string, all bool, files ...string) error {
+ cmd := NewCommandNoGlobals(append(globalArgs, "add")...)
if all {
cmd.AddArguments("--all")
}