Fix source typos (#18227)

Follow-up to #18219
This commit is contained in:
luzpaz authored and GitHub committed 2022-01-10 23:46:26 +08:00
1 parent 8c647bf0f6
commit af92473920
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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")
}